aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uselessd/APKBUILD
blob: fad5beecb2891197e50ef0f91ee2d889d6e333b9 (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=5
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="6f4bdf5c71f89135a89a4648718b6a1d  uselessd-5.tar.xz"
sha256sums="0d49cab1b4dd1d54d1ed02ab0181345618072e1de7f9603a1c5f775975f48312  uselessd-5.tar.xz"
sha512sums="5f8eaeaf33a25af4115a25160e157b638c1539f4c73b48b4292796304f2c457fc9d4b5b323d89f56247c93a426e1f7bce41c6eb7300a23f403f56acab64668e8  uselessd-5.tar.xz"