aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-05-24 01:18:45 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-07 05:43:59 -0300
commit232feb50a22056aa29d5d20f37f676535d2ad437 (patch)
tree87b05eecfa725f84fc5d61625f7885c97d59b471
parentc9f6e46a917a22d421adf60ecb85c987358abe84 (diff)
downloadaports-232feb50a22056aa29d5d20f37f676535d2ad437.tar.bz2
aports-232feb50a22056aa29d5d20f37f676535d2ad437.tar.xz
testing/sysprof: new aport
-rw-r--r--testing/sysprof/APKBUILD38
-rw-r--r--testing/sysprof/allow-disabling-systemdunitdir.patch32
2 files changed, 70 insertions, 0 deletions
diff --git a/testing/sysprof/APKBUILD b/testing/sysprof/APKBUILD
new file mode 100644
index 0000000000..d2ee01e002
--- /dev/null
+++ b/testing/sysprof/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=sysprof
+pkgver=3.32.0
+pkgrel=0
+pkgdesc="System-wide profiler for Linux"
+url="http://sysprof.com/"
+arch="all"
+license="GPL-2.0-or-later"
+depends_dev="$pkgname=$pkgver-r$pkgrel" # sysprof's lib setup is a bit weird...
+makedepends="meson gtk+3.0-dev itstool glib-dev polkit-dev elogind-dev"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang"
+source="https://download.gnome.org/sources/sysprof/${pkgver%.*}/sysprof-${pkgver}.tar.xz
+ allow-disabling-systemdunitdir.patch"
+
+build() {
+ meson \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ -Denable_gtk=true \
+ -Dsystemdunitdir=no \
+ . output
+ ninja -C output
+}
+
+check() {
+ ninja -C output test
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C output install
+}
+
+sha512sums="7b9d84ac241d376a5e545082b1224e7db96af26ae0ee297d5f0b2d45abc4676e23009dbd560085e5d4879378a8dd79eefb4449df3961fbfd09238bd2056061d0 sysprof-3.32.0.tar.xz
+ea1b850669a2e4750b7ee137cbd341a886744b8d8233633992f0d1eb8bd3efc585b7a4a582cfeb35c3ab5d012d0ed54f6e27f46e17c2f6a4ef6bc121f0a5b723 allow-disabling-systemdunitdir.patch"
diff --git a/testing/sysprof/allow-disabling-systemdunitdir.patch b/testing/sysprof/allow-disabling-systemdunitdir.patch
new file mode 100644
index 0000000000..4c0329e08c
--- /dev/null
+++ b/testing/sysprof/allow-disabling-systemdunitdir.patch
@@ -0,0 +1,32 @@
+diff --git a/data/meson.build b/data/meson.build
+index cc924ae..63dc69b 100644
+--- a/data/meson.build
++++ b/data/meson.build
+@@ -86,16 +86,18 @@ if get_option('with_sysprofd') == 'bundled'
+ )
+
+ systemdunitdir = get_option('systemdunitdir')
+- if systemdunitdir == ''
+- systemdunitdir = dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir')
++ if systemdunitdir != 'no'
++ if systemdunitdir == ''
++ systemdunitdir = dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir')
++ endif
++ configure_file(
++ input: 'sysprof2.service.in',
++ output: 'sysprof2.service',
++ configuration: sysprofdconf,
++ install: true,
++ install_dir: systemdunitdir,
++ )
+ endif
+- configure_file(
+- input: 'sysprof2.service.in',
+- output: 'sysprof2.service',
+- configuration: sysprofdconf,
+- install: true,
+- install_dir: systemdunitdir,
+- )
+
+ i18n.merge_file(
+ input: 'org.gnome.sysprof2.policy.in',