aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uselessd/APKBUILD
blob: fa81745007542cf6db8008f8e6f38cf55e5b3a73 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=uselessd
pkgver=7
pkgrel=0
pkgdesc="A systemd replacement which uses less"
url="http://uselessd.darknedgy.net/"
arch="all"
license="GPL2 MIT"
depends=""
depends_dev="libcap-dev dbus-dev"
makedepends="$depends_dev intltool gperf coreutils m4 docbook-xsl"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://bitbucket.org/bcsd/uselessd/downloads/uselessd-$pkgver.tar.xz"

_builddir="$srcdir"/uselessd-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-nls \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="4e135a6c43fbd79c15e90a561f50c77d  uselessd-7.tar.xz"
sha256sums="35da6ce84b27147b10d6d5a224c94308f28b52bb3f0e993b3ed9ac7a0792b090  uselessd-7.tar.xz"
sha512sums="465f6a01beb58cec8e884ca29c7f98a9a531f850f829bdbf441a415688398810bef029c1b1058bb64197d47b808d108b1a7eb1c9da8325afe87b77fa494d9190  uselessd-7.tar.xz"