aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-04-12 14:45:07 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-04-27 05:55:51 +0000
commit49bcf5321eafe880f4e40ad50a0647562ffdf5bb (patch)
tree1a427f90b5d700f8eef55fbbc2e6d4bdb90b9fda /main/libpng
parent1d86504cefe8d5ea760306d418d0339b62cb3c64 (diff)
downloadaports-49bcf5321eafe880f4e40ad50a0647562ffdf5bb.tar.bz2
aports-49bcf5321eafe880f4e40ad50a0647562ffdf5bb.tar.xz
main/libpng: remove broken symlink
add check() cleanups with apng patch dealing
Diffstat (limited to 'main/libpng')
-rw-r--r--main/libpng/APKBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/libpng/APKBUILD b/main/libpng/APKBUILD
index c101ddce9a..94837fed68 100644
--- a/main/libpng/APKBUILD
+++ b/main/libpng/APKBUILD
@@ -2,8 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.29
-_apngver=1.6.29
-pkgrel=0
+pkgrel=1
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
arch="all"
@@ -13,14 +12,14 @@ depends_dev="zlib-dev"
makedepends="$depends_dev gawk"
subpackages="$pkgname-doc $pkgname-dev $pkgname-utils"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
- http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz
+ http://downloads.sourceforge.net/sourceforge/$pkgname-apng/$pkgname-$pkgver-apng.patch.gz
libpng-fix-arm-neon.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
- gunzip -c "$srcdir"/libpng-$_apngver-apng.patch.gz | patch -p1 || return 1
+ gunzip -c "$srcdir"/$pkgname-$pkgver-apng.patch.gz | patch -p1 || return 1
default_prepare || return 1
}
@@ -37,11 +36,16 @@ build() {
make || return 1
}
+check() {
+ make -C "$builddir" check
+}
+
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
+ rm "$pkgdir"/usr/lib/*.la
}
utils() {