[arch-commits] Commit in openjpeg2/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Tue Apr 2 19:14:42 UTC 2019


    Date: Tuesday, April 2, 2019 @ 19:14:41
  Author: andyrtr
Revision: 349707

archrelease: copy trunk to testing-x86_64

Added:
  openjpeg2/repos/testing-x86_64/
  openjpeg2/repos/testing-x86_64/PKGBUILD
    (from rev 349706, openjpeg2/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: openjpeg2/repos/testing-x86_64/PKGBUILD (from rev 349706, openjpeg2/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-04-02 19:14:41 UTC (rev 349707)
@@ -0,0 +1,44 @@
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=openjpeg2
+pkgver=2.3.1
+pkgrel=1
+pkgdesc="An open source JPEG 2000 codec, version ${pkgver}"
+arch=(x86_64)
+license=('custom: BSD')
+url="https://github.com/uclouvain/openjpeg"
+makedepends=('cmake' 'doxygen')
+depends=('zlib' 'libpng' 'libtiff' 'lcms2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/uclouvain/openjpeg/archive/v$pkgver.tar.gz")
+sha256sums=('63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9')
+
+prepare() {
+  cd ${srcdir}
+  mkdir build
+
+  # Install doxygen docs to the right directory
+  sed -i -e "s:DESTINATION\ share/doc:DESTINATION\ share/doc/${pkgname}:" openjpeg-${pkgver}/doc/CMakeLists.txt
+}
+
+build() {
+  cd "${srcdir}/build"
+
+  cmake "../openjpeg-${pkgver}" \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    -DBUILD_STATIC_LIBS=OFF \
+    -DBUILD_DOC=on
+
+  make
+}
+
+package() {
+  cd "${srcdir}/build"
+  make DESTDIR="${pkgdir}" install
+  
+  install -m755 -d "${pkgdir}/usr/share/licenses/openjpeg2"
+  mv ${pkgdir}/usr/share/doc/openjpeg-*/LICENSE ${pkgdir}/usr/share/licenses/openjpeg2
+  rmdir ${pkgdir}/usr/share/doc/openjpeg-*
+}


More information about the arch-commits mailing list