diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-11 00:13:21 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-11 00:13:21 +0000 |
commit | 6148751a6693c195f6bffd2f61039bf2972c991e (patch) | |
tree | 66b206ff15703007410efab7183bfd8899aa480b /community/optipng | |
parent | e45f701617486bb424368b8943617b57ffa114b1 (diff) | |
download | aports-6148751a6693c195f6bffd2f61039bf2972c991e.tar.bz2 aports-6148751a6693c195f6bffd2f61039bf2972c991e.tar.xz |
community/optipng: modernize and add check
Diffstat (limited to 'community/optipng')
-rw-r--r-- | community/optipng/APKBUILD | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/community/optipng/APKBUILD b/community/optipng/APKBUILD index 2ae7ed85b3..ed17fe8c58 100644 --- a/community/optipng/APKBUILD +++ b/community/optipng/APKBUILD @@ -1,14 +1,12 @@ # Maintainer: Michael Koloberdin <koloberdin@gmail.com> pkgname=optipng pkgver=0.7.6 -pkgrel=1 +pkgrel=2 pkgdesc="Compresses PNG files to a smaller size, without losing any information." url="http://optipng.sourceforge.net/" arch="all" license="ZLIB" -depends="" -makedepends="libpng-dev " -install="" +makedepends="libpng-dev" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" @@ -18,8 +16,13 @@ build() { cd "$builddir" ./configure \ --prefix=/usr \ - -with-system-libs || return 1 - make || return 1 + -with-system-libs + make +} + +check() { + cd "$builddir" + make test } package() { @@ -30,6 +33,4 @@ package() { install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 } -md5sums="568e0738358450eca69ecf578d48f26c optipng-0.7.6.tar.gz" -sha256sums="4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80 optipng-0.7.6.tar.gz" sha512sums="d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 optipng-0.7.6.tar.gz" |