summaryrefslogtreecommitdiff
path: root/extra/openjpeg/PKGBUILD
blob: c269813b99a73314f7b6f1f943305be04a249b10 (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
# $Id: PKGBUILD 184788 2013-05-08 13:56:11Z bpiotrowski $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=openjpeg
pkgver=1.5.1
pkgrel=1
pkgdesc="An open source JPEG 2000 codec"
arch=(i686 x86_64)
license=('BSD')
url="http://www.openjpeg.org"
depends=('zlib')
options=('!libtool')
source=(http://openjpeg.googlecode.com/files/openjpeg-${pkgver}.tar.gz)
sha1sums=('1b0b74d1af4c297fd82806a9325bb544caf9bb8b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  # make sure we use system libs
  rm -rf thirdparty
  ./configure --prefix=/usr \
	--disable-static --disable-silent-rules
  make
}

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