diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-08 18:51:32 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-08-09 11:52:35 +0000 |
commit | 4c65999655fbf02a94e7308aa1578bef991f9e2a (patch) | |
tree | aa8fe5ded1acb212017b4448aec271407307931c /main | |
parent | d91f869ab54a9d7f7187560def2d2342bea16bd1 (diff) | |
download | aports-4c65999655fbf02a94e7308aa1578bef991f9e2a.tar.bz2 aports-4c65999655fbf02a94e7308aa1578bef991f9e2a.tar.xz |
main/haveged: improve abuild, fix code-style
Diffstat (limited to 'main')
-rw-r--r-- | main/haveged/APKBUILD | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/main/haveged/APKBUILD b/main/haveged/APKBUILD index 188d6f50f0..707db780a4 100644 --- a/main/haveged/APKBUILD +++ b/main/haveged/APKBUILD @@ -5,42 +5,45 @@ pkgname=haveged pkgver=1.9.1 pkgrel=1 -pkgdesc='Entropy harvesting daemon using CPU timings' +pkgdesc="Entropy harvesting daemon using CPU timings" url="http://www.issihosts.com/haveged/" arch="all" license="GPL" subpackages="$pkgname-doc" makedepends="linux-headers" source="http://www.issihosts.com/haveged/haveged-$pkgver.tar.gz - haveged.initd haveged.confd" - -_builddir="$srcdir"/$pkgname-$pkgver + haveged.initd + haveged.confd" +builddir="$srcdir/$pkgname-$pkgver" prepare() { - cd "$_builddir" + cd "$builddir" update_config_sub || return 1 } build() { - cd "$_builddir" - ./configure \ + cd "$builddir" + + ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix /usr \ - --sysconfdir /etc \ + --prefix=/usr \ + --sysconfdir=/etc \ || return 1 - make || return 1 + make || return 1 } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - rm "$pkgdir"/usr/lib/libhavege.la - - install -Dm755 "$srcdir"/haveged.initd \ - "$pkgdir"/etc/init.d/haveged || return 1 - install -Dm644 "$srcdir"/haveged.confd \ - "$pkgdir"/etc/conf.d/haveged || return 1 + cd "$builddir" + + make DESTDIR="$pkgdir" install || return 1 + + rm "$pkgdir"/usr/lib/libhavege.la + + install -Dm755 "$srcdir"/haveged.initd \ + "$pkgdir"/etc/init.d/haveged || return 1 + install -Dm644 "$srcdir"/haveged.confd \ + "$pkgdir"/etc/conf.d/haveged || return 1 } md5sums="015ff58cd10607db0e0de60aeca2f5f8 haveged-1.9.1.tar.gz |