summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-16 13:34:26 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-16 13:34:26 -0300
commit3a7049d8fc53683be0133beb73d51602e73e9668 (patch)
treecb7f01ab51be03e1c6a293d270ed335f5793aa60
parent7cc34e0a153456500fa86d73cd80afc0d609f393 (diff)
libjpeg-turbo-static: add new package to [libre]
-rw-r--r--libre/libjpeg-turbo-static/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/libre/libjpeg-turbo-static/PKGBUILD b/libre/libjpeg-turbo-static/PKGBUILD
new file mode 100644
index 000000000..5b21c880a
--- /dev/null
+++ b/libre/libjpeg-turbo-static/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of libjpeg-turbo
+
+_pkgname=libjpeg-turbo
+pkgname=libjpeg-turbo-static
+pkgver=1.4.2
+pkgrel=2
+pkgdesc='JPEG image codec with accelerated baseline compression and decompression (static libraries only)'
+url='http://libjpeg-turbo.virtualgl.org/'
+arch=('i686' 'x86_64' 'armv7h')
+license=('custom')
+makedepends=('nasm' 'jdk8-openjdk')
+depends=('libjpeg-turbo')
+source=("http://downloads.sourceforge.net/project/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
+sha1sums=('2666158ccd5318513f875867bbc4af52f6eb9f0b')
+
+options=('!makeflags' 'staticlibs')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ export JNI_CFLAGS='-I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux'
+ ./configure \
+ --prefix=/usr \
+ --with-jpeg8 \
+ --with-java \
+
+ make
+}
+
+check() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make test
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make \
+ DESTDIR="${pkgdir}" \
+ install
+
+ # remove conflicting files
+ rm -vr ${pkgdir}/usr/{bin,include,share}
+ rm -v ${pkgdir}/usr/lib/lib*.so*
+}