sbcl 2.3.0 rebuild
[arch-packages.git] / openjpeg2 / repos / extra-x86_64 / PKGBUILD
blob3a0102655b6e75812d91b04450f44797c060c9e3
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=1
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