summaryrefslogtreecommitdiff
path: root/community/udunits/PKGBUILD
blob: b4bdcbfe4adbed610a023fb7b800620cfd8febd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
}