diff options
author | root <root@rshg054.dnsready.net> | 2012-02-26 23:15:00 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-26 23:15:00 +0000 |
commit | f6a79a3f5989efc8db63af942851c56f0c462bb1 (patch) | |
tree | 08bddecba9bbd4fc2c2075bfa2c514f710fcd351 /community/udunits/PKGBUILD | |
parent | e4a5730eb358cb0d78bc022204ddccac068c2bf2 (diff) |
Sun Feb 26 23:15:00 UTC 2012
Diffstat (limited to 'community/udunits/PKGBUILD')
-rw-r--r-- | community/udunits/PKGBUILD | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/community/udunits/PKGBUILD b/community/udunits/PKGBUILD index b1d7240a4..45657589d 100644 --- a/community/udunits/PKGBUILD +++ b/community/udunits/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 44910 2011-04-12 18:07:39Z kchen $ +# $Id: PKGBUILD 66543 2012-02-26 00:22:29Z lfleischer $ # Maintainer: Kaiting Chen <kaitocracy@gmail.com> # Contributor: Anton Bazhenov <anton.bazhenov at gmail> pkgname=udunits -pkgver=2.1.22 -pkgrel=2 +pkgver=2.1.24 +pkgrel=1 pkgdesc='A tool for calculations of physical quantities' arch=('i686' 'x86_64') url='http://www.unidata.ucar.edu/software/udunits/' @@ -14,20 +14,27 @@ depends=('glibc' 'expat') provides=('udunits2') install=udunits.install source=("ftp://ftp.unidata.ucar.edu/pub/$pkgname/$pkgname-$pkgver.tar.gz") -md5sums=('9a1972a1389a9a613beacd9b05aef6ed') +md5sums=('6986545721747a51285c765644dcd9d8') build() { + cd "$srcdir/$pkgname-$pkgver" + # stupid workaround for broken make install - install -dm755 $pkgdir/usr/share/doc/$pkgname + install -dm755 "$pkgdir/usr/share/doc/$pkgname" cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --disable-static - make; make DESTDIR=$pkgdir install + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install for x in so so.0 so.0.1.0; do - ln -s libudunits2.$x \ - $pkgdir/usr/lib/libudunits.$x + ln -s "libudunits2.$x" "$pkgdir/usr/lib/libudunits.$x" done - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |