aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-11 09:55:00 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-12 00:39:46 +0100
commitd50797f345088f82ca791db85423ea62e14a9cb9 (patch)
treea27547a5d6f0614d03da03f861fef090ea5f5a81
parentfd232d165bf906fbf7baa004d55ee14e6bb1928a (diff)
downloadaports-d50797f345088f82ca791db85423ea62e14a9cb9.tar.gz
aports-d50797f345088f82ca791db85423ea62e14a9cb9.tar.bz2
aports-d50797f345088f82ca791db85423ea62e14a9cb9.tar.xz
testing/startup: new aport
https://gitlab.com/chinstrap/startup Event driven task and service manager
-rw-r--r--testing/startup/APKBUILD118
1 files changed, 118 insertions, 0 deletions
diff --git a/testing/startup/APKBUILD b/testing/startup/APKBUILD
new file mode 100644
index 0000000000..222459417e
--- /dev/null
+++ b/testing/startup/APKBUILD
@@ -0,0 +1,118 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=startup
+pkgver=2.0.1
+pkgrel=0
+pkgdesc="Event driven task and service manager"
+options="!check"
+url="https://gitlab.com/chinstrap/startup"
+arch="all"
+license="GPL-2.0-only"
+makedepends="
+ autoconf
+ automake
+ libtool
+ gettext-dev
+ libnih-dev
+ eudev-dev
+ dbus-dev
+ json-c-dev
+ cgmanager-dev
+ linux-headers
+ glib-dev
+ dconf-dev
+ "
+checkdepends="python3 dbus"
+# https://gitlab.com/chinstrap/startup/issues/42
+checkdepends="$checkdepends coreutils"
+subpackages="
+ $pkgname-dev
+ $pkgname-doc
+ $pkgname-lang
+ $pkgname-tools::noarch
+ libupstart:libs
+ $pkgname-bridge-udev
+ $pkgname-bridge-dconf
+ "
+source="$pkgname-$pkgver.tar.gz::https://gitlab.com/chinstrap/startup/-/archive/$pkgver/startup-$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ autoreconf -fi
+}
+
+build() {
+ export LDFLAGS="$LDFLAGS -lintl"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --sysconfdir=/etc \
+ --prefix=/usr \
+ --disable-sysvcompat \
+ --disable-static
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ rm -rf "$pkgdir"/usr/lib/*.la
+}
+
+tools() {
+ depends="$pkgname=$pkgver-r$pkgrel py3-dbus py3-gobject3"
+ pkgdesc="Monitoring and analysis tools for Startup"
+
+ mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/bin/initctl2dot \
+ "$pkgdir"/usr/bin/startup-monitor \
+ "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/share/icons \
+ "$pkgdir"/usr/share/applications \
+ "$subpkgdir"/usr/share
+}
+
+dconf() {
+ pkgdesc="Dconf event bridge for Startup"
+ install_if="$pkgname=$pkgver-r$pkgrel dconf"
+
+ mkdir -p "$subpkgdir"/usr/libexec/startup/bridge \
+ "$subpkgdir"/usr/share/startup \
+ "$subpkgdir"/usr/share/xdg/startup
+
+ mv "$pkgdir"/usr/libexec/startup/bridge/dconf \
+ "$subpkgdir"/usr/libexec/startup/bridge
+
+ # mv "$pkgdir"/usr/share/startup/bridge-dconf.conf \
+ # "$pkgdir"/usr/share/startup/bridge-dconf.override \
+ # "$subpkgdir"/usr/share/startup
+
+ mv "$pkgdir"/usr/share/xdg/startup/bridge-dconf.conf \
+ "$pkgdir"/usr/share/xdg/startup/bridge-dconf.override \
+ "$subpkgdir"/usr/share/xdg/startup
+}
+
+udev() {
+ pkgdesc="Udev event bridge for Startup"
+ install_if="$pkgname=$pkgver-r$pkgrel eudev"
+
+ mkdir -p "$subpkgdir"/usr/libexec/startup/bridge \
+ "$subpkgdir"/usr/share/startup \
+ "$subpkgdir"/usr/share/xdg/startup
+
+ mv "$pkgdir"/usr/libexec/startup/bridge/udev \
+ "$subpkgdir"/usr/libexec/startup/bridge
+
+ mv "$pkgdir"/usr/share/startup/bridge-udev.conf \
+ "$pkgdir"/usr/share/startup/bridge-udev.override \
+ "$subpkgdir"/usr/share/startup
+
+ mv "$pkgdir"/usr/share/xdg/startup/bridge-udev.conf \
+ "$pkgdir"/usr/share/xdg/startup/bridge-udev.override \
+ "$subpkgdir"/usr/share/xdg/startup
+}
+
+sha512sums="ca34249592b6b49327021faa6b7c6e0ee08364941876079e1acb906878e329d32ef72a89577213fc6714af94acee13d6c195d6bb6f47d6d6b35d6358c2513f5a startup-2.0.1.tar.gz"