diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 11:55:48 -0300 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-13 17:57:36 +0200 |
commit | dbb2805896055d3cad70129b5296d33c7d0a28d0 (patch) | |
tree | ab044e32a723d295343de277454080a13b2ea1c9 /main/darkhttpd | |
parent | c1c443b4397fea38f067dc6e5e71e61f91bb9a9c (diff) | |
download | aports-dbb2805896055d3cad70129b5296d33c7d0a28d0.tar.bz2 aports-dbb2805896055d3cad70129b5296d33c7d0a28d0.tar.xz |
main/darkhttpd: modernize abuild
Diffstat (limited to 'main/darkhttpd')
-rw-r--r-- | main/darkhttpd/APKBUILD | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/main/darkhttpd/APKBUILD b/main/darkhttpd/APKBUILD index 05139640ea..8eaa5ff3f2 100644 --- a/main/darkhttpd/APKBUILD +++ b/main/darkhttpd/APKBUILD @@ -7,48 +7,27 @@ pkgdesc="A simple, single-threaded, static content webserver" url="http://unix4lyfe.org/darkhttpd/" arch="all" license="BSD" -depends="" -depends_dev="" -makedepends="$depends_dev" install="$pkgname.pre-install" -subpackages="" source="http://unix4lyfe.org/darkhttpd/darkhttpd-$pkgver.tar.bz2 darkhttpd.logrotate $pkgname.initd" - -_builddir="$srcdir/$pkgname-$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 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" - make || return 1 + cd "$builddir" + make } package() { - # install binary - cd "$_builddir" - install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname || return 1 + cd "$builddir" + + install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname install -d "$pkgdir"/var/www/localhost/htdocs \ - "$pkgdir"/var/log/darkhttpd || return 1 + "$pkgdir"/var/log/darkhttpd - # install init.d - install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1 + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } -md5sums="d0d483a92f7af8f1c667d9e23e754280 darkhttpd-1.12.tar.bz2 -63aa435ce78851d57c39426e34ec728b darkhttpd.logrotate -c14025d4e4421dc4d7abb9efcf980319 darkhttpd.initd" -sha256sums="a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505 darkhttpd-1.12.tar.bz2 -b4441bef90ca7fce5861edab165a3a7ea21b2e63faf27ec85aa85702fc8ac96b darkhttpd.logrotate -93aebf386308fce0c9214d1d693bb8bbcb8266f3a4253366c3698fbdac19c8a1 darkhttpd.initd" sha512sums="e977ba0401b24a122733f8d5084fcdea4a3e2664dd5c127b26b822bfdbe458124104b1d5c673a8689af988b5713ce2e902945238b815b82104f286f577eea8bd darkhttpd-1.12.tar.bz2 bb95277a9f8f227aeec8bfe6ef54f52a2f034ed0dd25258b996c17f9ce9dd4ad220366b10490246b25bb6b18ccde7bda0d52eeb88667941cf2fdab15c940dbbc darkhttpd.logrotate 17c22c67e3f2e5bef9873c9fc8f1551cc7769dd0186be3f7563e1f908617c1c8dbbddae298246357133ae285b6d0e24c28f4e6defcb47c94634cf666690fcb52 darkhttpd.initd" |