summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gahde2016-09-26 11:39:21 +0200
committerJakob Gahde2016-09-26 11:39:21 +0200
commit095f67505dcf704a5766b392d984e6c81848df8b (patch)
treef521c254de353e8d242c1cfa9de4a973e40f8749
parent198b0603b6791c74ee89b17204a3d8bc6e2122d4 (diff)
downloadaur-095f67505dcf704a5766b392d984e6c81848df8b.tar.gz
lib32-jasper 1.900.1-1: New package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD35
2 files changed, 27 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 13e971e2bfb..68a3e575eff 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,13 @@
# Generated by mksrcinfo v8
-# Mon Sep 26 04:26:52 UTC 2016
-pkgbase = jasper
- pkgdesc = A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard
+# Mon Sep 26 09:33:45 UTC 2016
+pkgbase = lib32-jasper
+ pkgdesc = A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard (32-bit)
pkgver = 1.900.1
- pkgrel = 15
+ pkgrel = 1
url = http://www.ece.uvic.ca/~mdadams/jasper/
- arch = i686
arch = x86_64
license = custom:JasPer2.0
- makedepends = freeglut
- makedepends = libxmu
- makedepends = glu
- depends = libjpeg
- optdepends = freeglut: for jiv support
- optdepends = glu: for jiv support
+ depends = lib32-libjpeg
source = http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip
source = patch-libjasper-stepsizes-overflow.diff
source = jasper-1.900.1-CVE-2008-3520.patch
@@ -47,5 +41,5 @@ pkgbase = jasper
sha1sums = 06f89116508b1498e97a41ae07e15a4f049e671d
sha1sums = 101de5e73ebd690c08a7c1d7639fb35ede41faa3
-pkgname = jasper
+pkgname = lib32-jasper
diff --git a/PKGBUILD b/PKGBUILD
index 4730571eb41..c19059e5ac0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,16 @@
-# $Id$
-# Maintainer: Eric Bélanger <eric@archlinux.org>
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+# Contributor: Eric Bélanger <eric@archlinux.org>
-pkgname=jasper
+_pkgname=jasper
+pkgname=lib32-${_pkgname}
pkgver=1.900.1
-pkgrel=15
-pkgdesc="A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard"
-arch=('i686' 'x86_64')
+pkgrel=1
+pkgdesc="A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard (32-bit)"
+arch=('x86_64')
url="http://www.ece.uvic.ca/~mdadams/jasper/"
license=('custom:JasPer2.0')
-depends=('libjpeg')
-makedepends=('freeglut' 'libxmu' 'glu')
-optdepends=('freeglut: for jiv support' 'glu: for jiv support')
-source=(http://www.ece.uvic.ca/~mdadams/${pkgname}/software/${pkgname}-${pkgver}.zip
+depends=('lib32-libjpeg')
+source=(http://www.ece.uvic.ca/~mdadams/${_pkgname}/software/${_pkgname}-${pkgver}.zip
patch-libjasper-stepsizes-overflow.diff jasper-1.900.1-CVE-2008-3520.patch
jpc_dec.c.patch jasper-1.900.1-CVE-2008-3522.patch
jasper-1.900.1-CVE-2014-8137.patch jasper-avoid-assert-abort.diff
@@ -41,7 +40,8 @@ sha1sums=('9c5735f773922e580bf98c7c7dfda9bbed4c5191'
'101de5e73ebd690c08a7c1d7639fb35ede41faa3')
prepare() {
- cd ${pkgname}-${pkgver}
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
patch -p1 -i "${srcdir}/jpc_dec.c.patch"
patch -p1 -i "${srcdir}/patch-libjasper-stepsizes-overflow.diff"
patch -p1 -i "${srcdir}/jasper-1.900.1-CVE-2008-3520.patch"
@@ -60,13 +60,20 @@ prepare() {
}
build() {
- cd ${pkgname}-${pkgver}
- ./configure --prefix=/usr --mandir=/usr/share/man --enable-shared
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ ./configure --prefix=/usr --libdir=/usr/lib32 --mandir=/usr/share/man \
+ --enable-shared
make
}
package() {
- cd ${pkgname}-${pkgver}
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}/usr/"{bin,include,share}
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}