summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2019-10-07 17:11:06 -0300
committerGonzalo Exequiel Pedone2019-10-07 17:11:06 -0300
commit5c22ff433c56a9bb5c45e6acd5f826b524652004 (patch)
treeeb07a713df78459145500b4b504e7154bc6522f6
downloadaur-5c22ff433c56a9bb5c45e6acd5f826b524652004.tar.gz
First commit.
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD58
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..25de9160972
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = android-x86-64-openjpeg2
+ pkgdesc = An open source JPEG 2000 codec, version 2.3.1 (android)
+ pkgver = 2.3.1
+ pkgrel = 1
+ url = https://www.openjpeg.org
+ arch = any
+ license = BSD
+ makedepends = android-cmake
+ depends = android-ndk
+ depends = android-x86-64-libpng
+ depends = android-x86-64-lcms2
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ options = !emptydirs
+ source = https://github.com/uclouvain/openjpeg/archive/v2.3.1.tar.gz
+ sha256sums = 63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9
+
+pkgname = android-x86-64-openjpeg2
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..47731b2e711
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg
+src
+*.tar.xz
+*.tar.gz
+*.tar.bz2
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..124f347eebc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
+# Contributor: pingplug < aur at pingplug dot me >
+# Contributor: Schala Zeal < schalaalexiazeal at gmail dot com >
+
+_android_arch=x86-64
+
+pkgname=android-${_android_arch}-openjpeg2
+pkgver=2.3.1
+pkgrel=1
+arch=('any')
+pkgdesc="An open source JPEG 2000 codec, version ${pkgver} (android)"
+license=('BSD')
+url="https://www.openjpeg.org"
+depends=('android-ndk'
+ "android-${_android_arch}-libpng"
+ "android-${_android_arch}-lcms2")
+options=(!strip !buildflags staticlibs !emptydirs)
+makedepends=('android-cmake')
+source=("https://github.com/uclouvain/openjpeg/archive/v${pkgver}.tar.gz")
+sha256sums=('63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9')
+
+build() {
+ cd "${srcdir}"/openjpeg-${pkgver}
+ source android-env ${_android_arch}
+
+ mkdir "build-${_android_arch}-static" && pushd "build-${_android_arch}-static"
+ android-${_android_arch}-cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_DOC=OFF \
+ -DBUILD_TESTING=OFF \
+ -DBUILD_SHARED_LIBS=OFF \
+ ..
+ make $MAKEFLAGS
+ popd
+
+ mkdir "build-${_android_arch}-shared" && pushd "build-${_android_arch}-shared"
+ android-${_android_arch}-cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_DOC=OFF \
+ -DBUILD_TESTING=OFF \
+ -DBUILD_PKGCONFIG_FILES=ON \
+ ..
+ make $MAKEFLAGS
+ popd
+}
+
+package() {
+ source android-env ${_android_arch}
+
+ cd "${srcdir}/openjpeg-${pkgver}/build-${_android_arch}-static"
+ make DESTDIR="$pkgdir" install
+ cd "${srcdir}/openjpeg-${pkgver}/build-${_android_arch}-shared"
+ make DESTDIR="$pkgdir" install
+
+ rm -r "${pkgdir}"/${ANDROID_PREFIX_BIN}
+ ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
+ ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
+}