# $Id: PKGBUILD 84848 2013-02-25 10:40:35Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Jeff Mickey # Contributor: Steve Sansom pkgname=units pkgver=2.01 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=('81bf85937c56fbbd04b16f2f3f9d8526' 'dbb20e628ce0879fe82393f585e9dab6') build() { cd $srcdir/$pkgname-$pkgver # patch -p1 <$srcdir/build-fix.patch ./configure --prefix=/usr --datadir=/usr/share make } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR=$pkgdir install }