PKGBUILDs/core/gawk/PKGBUILD
2009-09-26 10:58:33 -05:00

28 lines
685 B
Bash

# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=gawk
pkgver=3.1.6
pkgrel=1
pkgdesc="Gnu version of awk"
arch=('arm')
url="http://www.gnu.org/directory/GNU/gawk.html"
license=('GPL')
groups=('base')
provides=('awk')
source=(ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
depends=()
md5sums=('b237751aef53c9ead9644e376bc53386')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/opt
make || return 1
make DESTDIR=$pkgdir install
mv "${pkgdir}/opt/libexec" "${pkgdir}/opt/lib"
install -dm755 "${pkgdir}/opt/bin"
# mv ${pkgdir}/opt/bin/gawk* "${pkgdir}/bin/"
# mv ${pkgdir}/opt/bin/awk "${pkgdir}/bin/"
}