diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/udunits |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/udunits')
-rw-r--r-- | community/udunits/PKGBUILD | 30 | ||||
-rw-r--r-- | community/udunits/udunits.install | 26 |
2 files changed, 56 insertions, 0 deletions
diff --git a/community/udunits/PKGBUILD b/community/udunits/PKGBUILD new file mode 100644 index 000000000..b4bdcbfe4 --- /dev/null +++ b/community/udunits/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 37949 2011-01-19 05:42:10Z kchen $ +# Maintainer: Kaiting Chen <kaitocracy@gmail.com> +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> + +pkgname=udunits +pkgver=2.1.20 +pkgrel=1 +pkgdesc='A tool for calculations of physical quantities' +arch=('i686' 'x86_64') +url='http://www.unidata.ucar.edu/software/udunits/' +license=('custom') +options=('!libtool') +depends=('glibc') +provides=('udunits2') +install=udunits.install +source=("ftp://ftp.unidata.ucar.edu/pub/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('e3282ad8c055dece9d48723d58d4d4c5') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr + make; make DESTDIR=$pkgdir install + + for x in a so so.0 so.0.0.0; do + ln -s libudunits2.$x \ + $pkgdir/usr/lib/libudunits.$x + done + + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/community/udunits/udunits.install b/community/udunits/udunits.install new file mode 100644 index 000000000..1a2fbfd7b --- /dev/null +++ b/community/udunits/udunits.install @@ -0,0 +1,26 @@ +INFO_DIR=/usr/share/info + +INFO_FILES=(udunits2.info udunits2lib.info udunits2prog.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${INFO_FILES[@]}; do install-info \ + $INFO_DIR/$file.gz $INFO_DIR/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${INFO_FILES[@]}; do + install-info --delete \ + $INFO_DIR/$file.gz $INFO_DIR/dir 2> /dev/null + done +} + +op=$1 +shift +$op $* |