blob: f151342fe53b54c142e78545fe8df35170fd6a7c (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.25
_apngver=1.6.24
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"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-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
default_prepare || return 1
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
}
md5sums="87cbd0f69e4bff0215de3994a149df77 libpng-1.6.25.tar.gz
d42f27f9836dcada5d737a3558c6659b libpng-1.6.24-apng.patch.gz
e58c8d9a4086999456de13b2c4b9e224 libpng-fix-arm-neon.patch"
sha256sums="67fef52fc70f21cd9efbb4fc9e74c1ed4eec770e5dc3dbfa6788212798967459 libpng-1.6.25.tar.gz
c14a4979e879750c736b13eec44b0ae37795c8eaf49a2b3907413e12a211166c libpng-1.6.24-apng.patch.gz
db38cd0a8ae637e1bf2dca464a2068a40576346d16ae929f20dc712d21870316 libpng-fix-arm-neon.patch"
sha512sums="4f23d0d8aa8ce00b9731fa69fde109f5b9bb70892a9e7a068349674c9009beb1868ba6c6579e60c50c7c205c120d77739fb42e30db4e5b7ec3ee5c5ae006a0b5 libpng-1.6.25.tar.gz
c5e513f4d89b0a0cd0745abb03a140b2135731817c3b1be60804a7fb639d3f3006ed5d68942411971130d87a440fa4c1e4aece610ccc7e711bed873272020981 libpng-1.6.24-apng.patch.gz
30c8389d075b90c0e30c0be8d7630cbf98c87c610f414c529485630dd0411cced28852d2fecc96bca72bc712f0f7e13358f9fc47b6d7b8c7806d34ebeef20514 libpng-fix-arm-neon.patch"
|