summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNichlas Severinsen2020-04-03 13:38:51 +0200
committerNichlas Severinsen2020-04-03 13:38:51 +0200
commite3e5f61889c816983251ae97d8a045148a40d1ca (patch)
tree01848702b7b67b22d88708e3640dc6448d056b7d
downloadaur-e3e5f61889c816983251ae97d8a045148a40d1ca.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c26b3321df8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = grok-jpeg2000
+ pkgdesc = A high performance open source JPEG 2000 codec.
+ pkgver = 5.1.0
+ pkgrel = 1
+ url = https://github.com/GrokImageCompression/grok
+ arch = x86_64
+ license = AGPL
+ makedepends = cmake
+ depends = zlib
+ depends = libpng
+ depends = libtiff
+ depends = lcms2
+ depends = libjpeg
+ depends = jbigkit
+ source = grok-jpeg2000-5.1.0.tar.gz::https://github.com/GrokImageCompression/grok/archive/v5.1.0.tar.gz
+ sha256sums = 3dec755ef693fd660a308645865ed9c0746b91dc7a37f63073dbb7ce856c8eaa
+
+pkgname = grok-jpeg2000
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..018a3de0814
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..06ba7d168ec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Current Maintainer: necklace <ns@nsz.no>
+# Original Packager: necklace <ns@nsz.no>
+
+pkgname=grok-jpeg2000
+pkgver=5.1.0
+pkgrel=1
+pkgdesc="A high performance open source JPEG 2000 codec."
+arch=(x86_64)
+license=('AGPL')
+url="https://github.com/GrokImageCompression/grok"
+makedepends=('cmake')
+depends=('zlib' 'libpng' 'libtiff' 'lcms2' 'libjpeg' 'jbigkit')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/GrokImageCompression/grok/archive/v$pkgver.tar.gz")
+sha256sums=('3dec755ef693fd660a308645865ed9c0746b91dc7a37f63073dbb7ce856c8eaa')
+
+prepare() {
+ cd "${srcdir}"
+ mkdir -p build
+}
+
+build() {
+ cd "${srcdir}/build"
+
+ cmake "../grok-${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/grok-jpeg2000"
+ mv "${pkgdir}"/usr/share/doc/GROK/LICENSE "${pkgdir}"/usr/share/licenses/grok-jpeg2000
+ rmdir "${pkgdir}"/usr/share/doc/GROK
+}