summaryrefslogtreecommitdiff
path: root/community/udunits/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/udunits/PKGBUILD')
-rw-r--r--community/udunits/PKGBUILD30
1 files changed, 30 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
+}