From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/udunits/PKGBUILD | 30 ++++++++++++++++++++++++++++++ community/udunits/udunits.install | 26 ++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 community/udunits/PKGBUILD create mode 100644 community/udunits/udunits.install (limited to 'community/udunits') 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 +# Contributor: Anton Bazhenov + +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 $* -- cgit v1.2.3-54-g00ecf