summaryrefslogtreecommitdiffstats
path: root/testing/uselessd/APKBUILD
blob: be7cce767eb611a6f628b1fe5778ef94116ca987 (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=6
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="b98cde6eeed81f49dfab2882ac711a05  uselessd-6.tar.xz"
sha256sums="740d6a4fb9c9145ef0fe661147b9ef0c4f256bb01b1b4bd2f3cc77ed644585ef  uselessd-6.tar.xz"
sha512sums="b42aad13902785ca0d8c9563e006a7cfd6b7f65f27794ba5a3182f972ba9b87dc7162a40a58e8fc02e259b8d4357ffb10b54ddc2f78fa5a1e6bd8ce7df6319e2  uselessd-6.tar.xz"