blob: 046b5029e9fe0035d062bf2493634b4cb0170063 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmng
pkgver=1.0.10
pkgrel=0
pkgdesc="A collection of routines used to create and manipulate MNG format graphics files"
url="http://www.libmng.com/"
arch="x86 x86_64"
license="custom"
depends=""
depends_dev="jpeg-dev"
makedepends="zlib-dev jpeg-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/libmng/libmng-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
ln -s makefiles/configure.in .
ln -s makefiles/Makefile.am .
autoreconf --force --install
}
build() {
cd "$_builddir"
./configure --prefix=/usr
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="a464ae7d679781beebdf7440d144b7bd libmng-1.0.10.tar.gz"
|