summaryrefslogtreecommitdiff
path: root/community/units/PKGBUILD
blob: f14114da1270954f2e99c4a12be4b30da6965e39 (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
# $Id: PKGBUILD 73111 2012-07-01 18:55:45Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jeff Mickey <jeff@archlinux.org>
# Contributor: Steve Sansom <snsansom@gmail.com>

pkgname=units
pkgver=2.00
pkgrel=1
pkgdesc="converts between different units"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/units/units.html"
depends=('readline')
license=("GPL")
options=('!makeflags')
install=units.install
source=(http://ftp.gnu.org/gnu/units/$pkgname-$pkgver.tar.gz
	build-fix.patch)
md5sums=('6d0518d493f9bab5aa318a3c7d0801b2'
         'bf891464e398b0ddadac97dd7ce948c4')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p1 <$srcdir/build-fix.patch
  ./configure --prefix=/usr --datadir=/usr/share
  make
  make DESTDIR=$pkgdir install
}