summaryrefslogtreecommitdiff
path: root/community/udunits/PKGBUILD
blob: b1d7240a40ae5f44f69a4ef62fd54f15f4315dd0 (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
31
32
33
# $Id: PKGBUILD 44910 2011-04-12 18:07:39Z kchen $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>

pkgname=udunits
pkgver=2.1.22
pkgrel=2
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' 'expat')
provides=('udunits2')
install=udunits.install
source=("ftp://ftp.unidata.ucar.edu/pub/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('9a1972a1389a9a613beacd9b05aef6ed')

build() {
  # stupid workaround for broken make install
  install -dm755 $pkgdir/usr/share/doc/$pkgname

  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --disable-static
  make; make DESTDIR=$pkgdir install

  for x in so so.0 so.0.1.0; do
    ln -s libudunits2.$x \
    $pkgdir/usr/lib/libudunits.$x
  done

  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}