Commit 49bcf532 authored by Valery Kartel's avatar Valery Kartel Committed by Timo Teräs

main/libpng: remove broken symlink

add check()
cleanups with apng patch dealing
parent 1d86504c
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment