From c8980f179e56b9c17c8ad130e1650398183ead33 Mon Sep 17 00:00:00 2001 From: Hill Ma Date: Mon, 6 Sep 2021 23:35:17 -0700 Subject: [PATCH] New package: apitrace 10.0 --- srcpkgs/apitrace-gui | 1 + srcpkgs/apitrace/patches/stdint-must.diff | 11 +++++++++ srcpkgs/apitrace/template | 28 +++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 srcpkgs/apitrace-gui create mode 100644 srcpkgs/apitrace/patches/stdint-must.diff create mode 100644 srcpkgs/apitrace/template diff --git a/srcpkgs/apitrace-gui b/srcpkgs/apitrace-gui new file mode 120000 index 000000000000..436bdb5f48cf --- /dev/null +++ b/srcpkgs/apitrace-gui @@ -0,0 +1 @@ +apitrace \ No newline at end of file diff --git a/srcpkgs/apitrace/patches/stdint-must.diff b/srcpkgs/apitrace/patches/stdint-must.diff new file mode 100644 index 000000000000..c46c9449b9b2 --- /dev/null +++ b/srcpkgs/apitrace/patches/stdint-must.diff @@ -0,0 +1,11 @@ +--- a/thirdparty/libbacktrace/backtrace.h ++++ b/thirdparty/libbacktrace/backtrace.h +@@ -43,7 +43,7 @@ + #include + +-#elif defined(HAVE_STDINT_H) ++#elif 1 + + #include + + #else diff --git a/srcpkgs/apitrace/template b/srcpkgs/apitrace/template new file mode 100644 index 000000000000..afe5c7e8870e --- /dev/null +++ b/srcpkgs/apitrace/template @@ -0,0 +1,28 @@ +# Template file for 'apitrace' +pkgname=apitrace +version=10.0 +revision=1 +build_style=cmake +configure_args="-DENABLE_GUI=1 -DENABLE_STATIC_SNAPPY=0" +hostmakedepends="python3 qt5-host-tools qt5-qmake" +makedepends="libX11-devel libdwarf-devel procps-ng-devel qt5-devel snappy-devel brotli-devel" +depends="python3" +checkdepends="gtest-devel" +short_desc="Tools for tracing graphics APIs" +maintainer="Hill Ma " +license="MIT" +homepage="http://apitrace.github.io/" +distfiles="https://github.com/apitrace/apitrace/archive/refs/tags/${version}.tar.gz" +checksum=2e57d37af39369d7ce78666acb8afb1a49ec758f683a21077ec39eb0befae4ad + +post_install() { + vlicense LICENSE +} + +apitrace-gui_package() { + short_desc+=" - Qt GUI" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/bin/qapitrace + } +}