PKGBUILDs/core/flex/PKGBUILD

29 lines
878 B
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
2009-09-26 15:58:33 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
pkgname=flex
pkgver=2.5.35
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
arch=('arm')
url="http://flex.sourceforge.net"
license=('custom')
groups=('base-devel')
2009-09-26 15:58:33 +00:00
depends=()
2009-09-26 14:35:50 +00:00
source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
lex.sh)
2009-09-26 15:58:33 +00:00
md5sums=('10714e50cea54dc7a227e3eddcd44d57'
'b727b22e44d136e7ef472406cd6f6cfa')
2009-09-26 14:35:50 +00:00
build() {
cd $startdir/src/$pkgname-$pkgver || return 1
2009-09-26 15:58:33 +00:00
./configure --prefix=/opt --mandir=/opt/share/man || return 1
2009-09-26 14:35:50 +00:00
make || return 1
2009-09-26 15:58:33 +00:00
make prefix=$startdir/pkg/opt mandir=$startdir/pkg/opt/share/man install || return 1
install -D -m755 $startdir/src/lex.sh $startdir/pkg/opt/bin/lex || return 1
2009-09-26 14:35:50 +00:00
# install license
install -D -m644 COPYING \
2009-09-26 15:58:33 +00:00
$startdir/pkg/opt/share/licenses/$pkgname/license.txt || return 1
2009-09-26 14:35:50 +00:00
}