upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / openjpeg2 / trunk / PKGBUILD
blob6ca387b6dc1fb88bcc06b83d3555d4b752ed42e2
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 pkgname=openjpeg2
5 pkgver=2.5.0
6 pkgrel=2
7 pkgdesc="An open source JPEG 2000 codec, version ${pkgver}"
8 arch=(x86_64)
9 license=('custom: BSD')
10 url="https://github.com/uclouvain/openjpeg"
11 makedepends=('cmake' 'doxygen' 'jbigkit')
12 depends=('zlib' 'libpng' 'libtiff' 'lcms2')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/uclouvain/openjpeg/archive/v$pkgver.tar.gz")
14 sha256sums=('0333806d6adecc6f7a91243b2b839ff4d2053823634d4f6ed7a59bc87409122a')
16 prepare() {
17   cd "${srcdir}"
18   mkdir build
21 build() {
22   cd "${srcdir}/build"
24   cmake "../openjpeg-${pkgver}" \
25     -DCMAKE_BUILD_TYPE=Release \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DBUILD_SHARED_LIBS=ON \
28     -DBUILD_STATIC_LIBS=OFF \
29     -DBUILD_DOC=on
31   make
34 package() {
35   cd "${srcdir}/build"
36   make DESTDIR="${pkgdir}" install
37   
38   install -m755 -d "${pkgdir}/usr/share/licenses/openjpeg2"
39   mv "${pkgdir}"/usr/share/doc/openjpeg-*/LICENSE "${pkgdir}"/usr/share/licenses/openjpeg2