blob: 109c7c25e13817da713c16afd65b253ad6e292a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.32
pkgrel=0
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
arch="all"
license="GPL"
depends=""
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/$pkgname-apng/$pkgname-$pkgver-apng.patch.gz
libpng-fix-arm-neon.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
gunzip -c "$srcdir"/$pkgname-$pkgver-apng.patch.gz | patch -p1
default_prepare
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
make -C "$builddir" check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
rm -f "$pkgdir"/usr/lib/*.la
}
utils() {
pkgdesc="$pkgdesc (pngfix utils)"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
sha512sums="adf47cdfdf7d420ad9c6db5d3680d176ddf96824dc4be0fd6c198c9de24cdb35f063c4359cfad1c0e291077961226b3c683db804d30b164006d6dd6312030448 libpng-1.6.32.tar.gz
4a6e158f5a9d49e036bb4006b4bd8cf4c7563bc9c7e38a12dd4764dedb6891ca03a1b3ae46029017912e984434b67ee6b434e279e5bc22db4e627340e55ab59d libpng-1.6.32-apng.patch.gz
e3fae918f14bc34e7c126892f69527c6e1b4d72593835ece839d9a28cff55a886b2030f877cf9e29b2c97abf2e47bbb5ba54584828edd2a841c2556f330b9c7e libpng-fix-arm-neon.patch"
|