diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-28 00:19:14 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-28 00:19:14 +0000 |
commit | 5822e18c4a5eeb675b6800177e88679c78dba9e9 (patch) | |
tree | 942364627ba1ce095c0157f03a05c4ef4fa69022 | |
parent | c822a937137229cfff4197169984381084222c51 (diff) | |
download | aports-5822e18c4a5eeb675b6800177e88679c78dba9e9.tar.bz2 aports-5822e18c4a5eeb675b6800177e88679c78dba9e9.tar.xz |
testing/optipng: use system libs (fixes aarch64 build)
-rw-r--r-- | testing/optipng/APKBUILD | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/testing/optipng/APKBUILD b/testing/optipng/APKBUILD index 0bca781ea7..07a366ef13 100644 --- a/testing/optipng/APKBUILD +++ b/testing/optipng/APKBUILD @@ -7,40 +7,29 @@ url="http://optipng.sourceforge.net/" arch="all" license="ZLIB" depends="" -makedepends="" +makedepends="libpng-dev " install="" subpackages="$pkgname-doc" -source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz - builtin-zlib.patch" +source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" -_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" - ./configure --prefix=/usr || return 1 + cd "$builddir" + ./configure \ + --prefix=/usr \ + -with-system-libs || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make prefix="$pkgdir/usr" mandir="$pkgdir/usr/share/man" install || return 1 # install license install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 } -md5sums="568e0738358450eca69ecf578d48f26c optipng-0.7.6.tar.gz -510408cb0f6cdcdf9c94ab9872f33a9a builtin-zlib.patch" -sha256sums="4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80 optipng-0.7.6.tar.gz -3824daeba9185b5aa3e8a21dc243817bebb0cfb53ee102d3f2cc81ce5263fa73 builtin-zlib.patch" -sha512sums="d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 optipng-0.7.6.tar.gz -062b12062f6d80127f89da88d216ad69c152f85ff03537f3c389c3e7ecc798bf21d62e1bb1065a0234b68b1acda6ef670ef5971c45d7ed4bbd5bdd3786fdd0b0 builtin-zlib.patch" +md5sums="568e0738358450eca69ecf578d48f26c optipng-0.7.6.tar.gz" +sha256sums="4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80 optipng-0.7.6.tar.gz" +sha512sums="d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 optipng-0.7.6.tar.gz" |