summaryrefslogtreecommitdiff
path: root/extra/libmng/PKGBUILD
blob: 87f3b24385f2b94c4c15eaba7cfb040513a2b3f2 (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
# $Id: PKGBUILD 193685 2013-08-28 00:06:03Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=libmng
pkgver=2.0.2
pkgrel=2
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=('lcms2')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.asc}
        libmng-stdio.patch)
sha1sums=('7dd35369ff5916e1823cbacef984ab1b87714b69'
          'SKIP'
          '2f8b472d53791ba3a44dab9b18fb215e8b19dd77')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p5 -i "${srcdir}/libmng-stdio.patch"
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

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