summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-08-13 15:51:26 +0800
committerChocobo12017-08-13 16:16:47 +0800
commitf664539d60ef896541c33c79dd8bfc09d8d28a8d (patch)
tree76feba0cd76869c5585dacec9e0766f4697ff3e6
downloadaur-f664539d60ef896541c33c79dd8bfc09d8d28a8d.tar.gz
newpkg: openjpeg-git 2.2.0.r9.g0b4c3ce7-1
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD47
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c0b299930f0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = openjpeg-git
+ pkgdesc = An open-source JPEG 2000 codec written in C language
+ pkgver = 2.2.0.r9.g0b4c3ce7
+ pkgrel = 1
+ url = https://github.com/uclouvain/openjpeg
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ makedepends = doxygen
+ depends = glibc
+ depends = zlib
+ depends = libpng
+ depends = libtiff
+ depends = lcms2
+ provides = openjpeg2
+ conflicts = openjpeg2
+ source = git+https://github.com/uclouvain/openjpeg.git
+ sha256sums = SKIP
+
+pkgname = openjpeg-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e27fcecf2b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=openjpeg-git
+pkgver=2.2.0.r9.g0b4c3ce7
+pkgrel=1
+pkgdesc="An open-source JPEG 2000 codec written in C language"
+arch=('i686' 'x86_64')
+url="https://github.com/uclouvain/openjpeg"
+license=('BSD')
+depends=('glibc' 'zlib' 'libpng' 'libtiff' 'lcms2')
+makedepends=('git' 'cmake' 'doxygen')
+provides=('openjpeg2')
+conflicts=('openjpeg2')
+source=("git+https://github.com/uclouvain/openjpeg.git")
+sha256sums=('SKIP')
+
+
+prepare() {
+ cd "openjpeg"
+
+ mkdir -p "build"
+
+ # Install doxygen docs to the right directory
+ sed -i -e "s:DESTINATION\ share/doc:DESTINATION\ share/doc/openjpeg2:" "doc/CMakeLists.txt"
+}
+
+pkgver() {
+ cd "openjpeg"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "openjpeg/build"
+
+ cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release -DBUILD_DOC=on ../
+ make
+}
+
+package() {
+ cd "openjpeg/build"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "../LICENSE" "$pkgdir/usr/share/licenses/openjpeg2/LICENSE"
+ rm -r "$pkgdir/usr/share/doc/openjpeg-2.2"
+}