1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
7 pkgdesc="An open source JPEG 2000 codec, version ${pkgver}"
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')
24 cmake "../openjpeg-${pkgver}" \
25 -DCMAKE_BUILD_TYPE=Release \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DBUILD_SHARED_LIBS=ON \
28 -DBUILD_STATIC_LIBS=OFF \
36 make DESTDIR="${pkgdir}" install
38 install -m755 -d "${pkgdir}/usr/share/licenses/openjpeg2"
39 mv "${pkgdir}"/usr/share/doc/openjpeg-*/LICENSE "${pkgdir}"/usr/share/licenses/openjpeg2