pkgname=openjpeg pkgver=2.5.3 pkgrel=1 pkgdesc="An open source JPEG 2000 codec, version ${pkgver}" arch=(x86_64) url="https://github.com/uclouvain/openjpeg" license=('BSD-2-Clause' 'MIT') depends=('libpng' 'libtiff' 'lcms2' 'glibc') makedepends=('cmake') source=(https://github.com/uclouvain/openjpeg/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(368fe0468228e767433c9ebdea82ad9d801a3ad1e4234421f352c8b06e7aa707) build() { cd ${pkgname}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_STATIC_LIBS=OFF ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build install -vdm755 ${pkgdir}/usr/share/man cp -rv doc/man -T ${pkgdir}/usr/share/man }