diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-16 22:20:36 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-16 22:24:15 +0000 |
commit | 45d5a183dbe6b5c3bc9a67dc5525d3b1dfd2c67c (patch) | |
tree | e6bfaf89d37d4b7a37cf656c3eebe2b79f7ee3b9 /community/bannergrab | |
parent | e5f2178a6be1812b982f4fd83d08f9c248f08dbd (diff) | |
download | aports-45d5a183dbe6b5c3bc9a67dc5525d3b1dfd2c67c.tar.bz2 aports-45d5a183dbe6b5c3bc9a67dc5525d3b1dfd2c67c.tar.xz |
community/bannergrab: modernize APKBUILD
Diffstat (limited to 'community/bannergrab')
-rw-r--r-- | community/bannergrab/APKBUILD | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/community/bannergrab/APKBUILD b/community/bannergrab/APKBUILD index f7b6c6b48f..a19d4fcad8 100644 --- a/community/bannergrab/APKBUILD +++ b/community/bannergrab/APKBUILD @@ -2,40 +2,28 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=bannergrab pkgver=3.5 -pkgrel=2 +pkgrel=3 pkgdesc="A banner grabbing tool" url="http://sourceforge.net/projects/bannergrab" arch="all" license="GPL3+" -depends="" -depends_dev="" makedepends="libressl-dev" -install="" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz" -_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 CFLAGS="-lcrypto -lssl" || return 1 + cd "$builddir" + make CFLAGS="-lcrypto -lssl" } package() { - cd "$_builddir" - install -m755 -D "$_builddir"/$pkgname \ - "$pkgdir"/usr/sbin/$pkgname || return 1 - install -m644 -D "$_builddir"/$pkgname.1 \ - "$pkgdir"/usr/share/man/man1/$pkgname.1 || return 1 + cd "$builddir" + install -m755 -D "$builddir"/$pkgname \ + "$pkgdir"/usr/sbin/$pkgname + install -m644 -D "$builddir"/$pkgname.1 \ + "$pkgdir"/usr/share/man/man1/$pkgname.1 } sha512sums="2ed867314f1481d622ccd46a5b92f884987f4a5bdde0bf98ce2a48716e40615f0bf4c03005a5626ea27e557b748e0658adc2c740b2001e0c013a218cc682a8bf bannergrab-3.5.tgz" |