summaryrefslogtreecommitdiffstats
path: root/abs/extra/libmng/PKGBUILD
blob: 7be67d7efeb85712de9addc58226a0fbaf284f79 (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
# $Id: PKGBUILD 137860 2011-09-12 05:28:13Z eric $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>

pkgname=libmng
pkgver=1.0.10
pkgrel=4
pkgdesc="A collection of routines used to create and manipulate MNG format graphics files"
arch=('i686' 'x86_64')
url="http://www.libmng.com/"
license=('custom')
depends=('zlib' 'libjpeg')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2 automake-patch)

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np0 < $srcdir/automake-patch || exit 1
  ln -s makefiles/configure.in .
  ln -s makefiles/Makefile.am .
  autoreconf --force --install
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
md5sums=('eaf1476a3bb29f6190bca660e6abef16'
         'abd75e07394cc04e0d8ffa9a93b1e485')