# Contributor: Carlo Landmeter # 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"