From cd0faf3b9c5dca5913299ec83cdddf13c70568ea Mon Sep 17 00:00:00 2001 From: Hill Ma Date: Sun, 18 Jul 2021 15:41:29 -0700 Subject: [PATCH] New package: apitrace 10.0 --- srcpkgs/apitrace-gui | 1 + srcpkgs/apitrace/patches/stdint-must.diff | 11 +++++++++ srcpkgs/apitrace/template | 27 +++++++++++++++++++++++ 3 files changed, 39 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..e7a67b504909 --- /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..50888c2e256f --- /dev/null +++ b/srcpkgs/apitrace/template @@ -0,0 +1,27 @@ +# Template file for 'apitrace' +pkgname=apitrace +version=10.0 +revision=1 +build_style=cmake +configure_args="-DENABLE_GUI=1" +hostmakedepends="python3" +makedepends="libX11-devel libdwarf-devel procps-ng-devel qt5-devel" +depends="python3" +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 + } +}