summaryrefslogtreecommitdiffstats
path: root/abs/extra/openjpeg/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 20:36:38 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 20:36:38 (GMT)
commit5f7b03898630b0f5c092267d23da769f605bdc03 (patch)
tree9053126338efc6e33f9f44d782ea4186ab7d5685 /abs/extra/openjpeg/PKGBUILD
parent4dfaebe685e7aaef44d559db1748fdc0dbd86985 (diff)
downloadlinhes_pkgbuild-5f7b03898630b0f5c092267d23da769f605bdc03.zip
linhes_pkgbuild-5f7b03898630b0f5c092267d23da769f605bdc03.tar.gz
linhes_pkgbuild-5f7b03898630b0f5c092267d23da769f605bdc03.tar.bz2
openjpeg 1.5.0
Diffstat (limited to 'abs/extra/openjpeg/PKGBUILD')
-rw-r--r--abs/extra/openjpeg/PKGBUILD35
1 files changed, 19 insertions, 16 deletions
diff --git a/abs/extra/openjpeg/PKGBUILD b/abs/extra/openjpeg/PKGBUILD
index 087da2f..7055c19 100644
--- a/abs/extra/openjpeg/PKGBUILD
+++ b/abs/extra/openjpeg/PKGBUILD
@@ -1,27 +1,30 @@
-# $Id: $
+# $Id: PKGBUILD 156266 2012-04-16 14:12:28Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=openjpeg
-pkgver=1.3
-_pkgver=v1_3
-pkgrel=3
+pkgver=1.5.0
+pkgrel=1
pkgdesc="An open source JPEG 2000 codec"
arch=(i686 x86_64)
license=('BSD')
url="http://www.openjpeg.org"
-depends=('glibc')
-source=(http://www.openjpeg.org/openjpeg_${_pkgver}.tar.gz
- 30_fix_build_for_debian.dpatch)
-md5sums=('f9a3ccfa91ac34b589e9bf7577ce8ff9'
- '2557f485513e77f6dcea77f4741c4fa1')
+depends=('zlib')
+options=('!libtool')
+source=(http://openjpeg.googlecode.com/files/openjpeg-${pkgver}.tar.gz)
+sha1sums=('dce705ae45f137e4698a8cf39d1fbf22bc434fa8')
build() {
- cd "${srcdir}/OpenJPEG_${_pkgver}"
- patch -Np1 -i "${srcdir}/30_fix_build_for_debian.dpatch" || return 1
- make || return 1
- make DESTDIR="${pkgdir}" install || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # make sure we use system libs
+ rm -rf thirtparty
+ ./configure --prefix=/usr \
+ --disable-static --disable-silent-rules
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/openjpeg"
- tr '\r' '\n' < license.txt > "${pkgdir}/usr/share/licenses/openjpeg/license.txt" || return 1
- chmod 644 "${pkgdir}/usr/share/licenses/openjpeg/license.txt" || return 1
- ln -s libopenjpeg.so.2 "${pkgdir}/usr/lib/libopenjpeg.so" || return 1
+ install -m644 LICENSE "${pkgdir}/usr/share/licenses/openjpeg/LICENSE"
}