diff options
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" } |