[arch-commits] Commit in libjpeg-turbo/repos (4 files)

Gaetan Bisson bisson at archlinux.org
Wed Jun 8 08:22:48 UTC 2016


    Date: Wednesday, June 8, 2016 @ 10:22:48
  Author: bisson
Revision: 269119

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  libjpeg-turbo/repos/testing-i686/
  libjpeg-turbo/repos/testing-i686/PKGBUILD
    (from rev 269118, libjpeg-turbo/trunk/PKGBUILD)
  libjpeg-turbo/repos/testing-x86_64/
  libjpeg-turbo/repos/testing-x86_64/PKGBUILD
    (from rev 269118, libjpeg-turbo/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   56 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

Copied: libjpeg-turbo/repos/testing-i686/PKGBUILD (from rev 269118, libjpeg-turbo/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-06-08 08:22:48 UTC (rev 269119)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Simone Sclavi 'Ito' <darkhado at gmail.com>
+
+pkgname=libjpeg-turbo
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
+url='http://libjpeg-turbo.virtualgl.org/'
+arch=('i686' 'x86_64')
+license=('custom')
+makedepends=('nasm' 'jdk8-openjdk')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha1sums=('9adc21b927e48e4c6889e77079f6c1f3eecf98ab')
+
+provides=('libjpeg=8.1.2' 'turbojpeg')
+conflicts=('libjpeg' 'turbojpeg')
+replaces=('libjpeg' 'turbojpeg')
+
+options=('!makeflags')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed 's/Szathmáry/Szathmary/g' -i java/org/libjpegturbo/turbojpeg/*.java
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	export JNI_CFLAGS='-I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux'
+	./configure \
+		--prefix=/usr \
+		--mandir=/usr/share/man \
+		--with-jpeg8 \
+		--with-java \
+
+	make
+}
+
+check() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make test
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make \
+		DESTDIR="${pkgdir}" \
+		docdir="/usr/share/doc/${pkgname}" \
+		exampledir="/usr/share/doc/${pkgname}" \
+		install
+	
+	install -d "${pkgdir}/usr/share/licenses/libjpeg-turbo"
+	ln -t "${pkgdir}/usr/share/licenses/libjpeg-turbo" -s ../../doc/libjpeg-turbo/README{,-turbo.txt}
+	install -m644 jpegint.h "${pkgdir}/usr/include" # required by other software
+}

Copied: libjpeg-turbo/repos/testing-x86_64/PKGBUILD (from rev 269118, libjpeg-turbo/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-06-08 08:22:48 UTC (rev 269119)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Simone Sclavi 'Ito' <darkhado at gmail.com>
+
+pkgname=libjpeg-turbo
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
+url='http://libjpeg-turbo.virtualgl.org/'
+arch=('i686' 'x86_64')
+license=('custom')
+makedepends=('nasm' 'jdk8-openjdk')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha1sums=('9adc21b927e48e4c6889e77079f6c1f3eecf98ab')
+
+provides=('libjpeg=8.1.2' 'turbojpeg')
+conflicts=('libjpeg' 'turbojpeg')
+replaces=('libjpeg' 'turbojpeg')
+
+options=('!makeflags')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed 's/Szathmáry/Szathmary/g' -i java/org/libjpegturbo/turbojpeg/*.java
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	export JNI_CFLAGS='-I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux'
+	./configure \
+		--prefix=/usr \
+		--mandir=/usr/share/man \
+		--with-jpeg8 \
+		--with-java \
+
+	make
+}
+
+check() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make test
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make \
+		DESTDIR="${pkgdir}" \
+		docdir="/usr/share/doc/${pkgname}" \
+		exampledir="/usr/share/doc/${pkgname}" \
+		install
+	
+	install -d "${pkgdir}/usr/share/licenses/libjpeg-turbo"
+	ln -t "${pkgdir}/usr/share/licenses/libjpeg-turbo" -s ../../doc/libjpeg-turbo/README{,-turbo.txt}
+	install -m644 jpegint.h "${pkgdir}/usr/include" # required by other software
+}



More information about the arch-commits mailing list