summaryrefslogtreecommitdiffstats
path: root/abs/core-testing
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-10-04 20:43:48 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-10-04 20:43:48 (GMT)
commitd0d7703bbe818afa92f0800fd6dbabaafe0a0543 (patch)
tree3aaa2cf513b068116aeff7fc2f0cbb48a83404d3 /abs/core-testing
parent7b65d79bd62038dcbdbdc865744ac07c3f842531 (diff)
downloadlinhes_pkgbuild-d0d7703bbe818afa92f0800fd6dbabaafe0a0543.zip
linhes_pkgbuild-d0d7703bbe818afa92f0800fd6dbabaafe0a0543.tar.gz
linhes_pkgbuild-d0d7703bbe818afa92f0800fd6dbabaafe0a0543.tar.bz2
libjpeg6:Added install file for ld.so.conf.
Diffstat (limited to 'abs/core-testing')
-rw-r--r--abs/core-testing/libjpeg6/PKGBUILD3
-rw-r--r--abs/core-testing/libjpeg6/libjpeg6.install31
2 files changed, 33 insertions, 1 deletions
diff --git a/abs/core-testing/libjpeg6/PKGBUILD b/abs/core-testing/libjpeg6/PKGBUILD
index 285532e..a66b92e 100644
--- a/abs/core-testing/libjpeg6/PKGBUILD
+++ b/abs/core-testing/libjpeg6/PKGBUILD
@@ -3,7 +3,7 @@
# Committer: Judd Vinet <jvinet@zeroflux.org>
pkgname=libjpeg6
pkgver=6b
-pkgrel=8
+pkgrel=9
pkgdesc="Library of JPEG support functions"
arch=('i686' 'x86_64')
url="http://ijg.org"
@@ -11,6 +11,7 @@ license=('custom')
depends=('glibc')
makedepends=('libtool')
options=(!libtool)
+install=libjpeg6.install
source=(ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v$pkgver.tar.gz)
md5sums=('dbd5f3b47ed13132f04c685d608a7547')
diff --git a/abs/core-testing/libjpeg6/libjpeg6.install b/abs/core-testing/libjpeg6/libjpeg6.install
new file mode 100644
index 0000000..dfb8ede
--- /dev/null
+++ b/abs/core-testing/libjpeg6/libjpeg6.install
@@ -0,0 +1,31 @@
+# arg 1: the new package version
+post_install() {
+ if qrep -q libjpeg6 /etc/ld.so.conf
+ then
+ exit
+ else
+ echo "/opt/libjpeg6/include" >> /etc/ld.so.conf
+ ldconfig
+ fi
+}
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ if qrep -q libjpeg6 /etc/ld.so.conf
+ then
+ exit
+ else
+ echo "/opt/libjpeg6/include" >> /etc/ld.so.conf
+ ldconfig
+ fi
+}
+# arg 1: the old package version
+post_remove() {
+ grep -v libjpeg6 /etc/ld.so.conf > /tmp/ld.so.conf
+ mv /tmp/ld.so.conf /etc/ld.so.conf
+ ldconfig
+}
+
+op=$1
+shift
+$op $*