aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 1e5d9fc6a65d31754f72d4f33746b7fbca5d332f (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.24
_apngver=1.6.23
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.xz
	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-$pkgver-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="ffcdbd549814787fa8010c372e35ff25  libpng-1.6.24.tar.xz
bf44929a1c272f585a11baeca05af500  libpng-1.6.23-apng.patch.gz
e58c8d9a4086999456de13b2c4b9e224  libpng-fix-arm-neon.patch"
sha256sums="7932dc9e5e45d55ece9d204e90196bbb5f2c82741ccb0f7e10d07d364a6fd6dd  libpng-1.6.24.tar.xz
08906e0639a953f6be2d47857661cbdf04dcab93d3bf9f8cb0f7675567b07ad3  libpng-1.6.23-apng.patch.gz
db38cd0a8ae637e1bf2dca464a2068a40576346d16ae929f20dc712d21870316  libpng-fix-arm-neon.patch"
sha512sums="7eccb90f530a9c728e280b2b1776304a808b5deea559632e7bcf4ea219c7cb5e453aa810215465304501127595000717d4b7c5b26a9f8e22e236ec04af53a90f  libpng-1.6.24.tar.xz
105e7f70d1292f4a059e62fda7c4ffbfcd4eacd3c11cd1fbdd09bdcf2b1469a54ee864c4f5f22afe9e17ddfd1d10196661a69bb4eb469173a3bfc789181923ce  libpng-1.6.23-apng.patch.gz
30c8389d075b90c0e30c0be8d7630cbf98c87c610f414c529485630dd0411cced28852d2fecc96bca72bc712f0f7e13358f9fc47b6d7b8c7806d34ebeef20514  libpng-fix-arm-neon.patch"