aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmng/APKBUILD
blob: 7d5eb37fd2ac60c542e6d9b1b0c2300cf8db994f (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmng
pkgver=2.0.3
pkgrel=1
pkgdesc="A collection of routines used to create and manipulate MNG format graphics files"
url="http://www.libmng.com/"
arch="all"
license="custom"
depends_dev="libjpeg-turbo-dev"
makedepends="$depends_dev zlib-dev lcms2-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/libmng/libmng-$pkgver.tar.gz"

prepare() {
	autoreconf --force --install
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--disable-static \
		--with-zlib \
		--with-jpeg \
		--with-lcms2
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="dc4035132fb85bee87785a4047c6727943fcbc10403bb24f674a600901ca7a57f589e7c8c41c7df153e3eeab85d032865126dd433a5fa990272ac8b6daf9314c  libmng-2.0.3.tar.gz"