aboutsummaryrefslogtreecommitdiffstats
path: root/community/startup/APKBUILD
blob: 270705f64aa107da2bb964e65f47e80065cb3771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=startup
pkgver=2.0.2
pkgrel=1
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="57c38f4b57f8c785971206ea94152773b2fea99919d3dbbb5e6e8f73ded4a31b3580ff6fe16ff128a424697875cf88c0e1d932b333a665e46df7c89dfa1d4093  startup-2.0.2.tar.gz"