summaryrefslogtreecommitdiff
path: root/testing/flex/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-07 11:24:34 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-07 11:24:34 -0300
commita607668699d0ed030ac69ed31969dfa266439e38 (patch)
tree5b3e076437e78d8624668454afc1d82750d54c8a /testing/flex/PKGBUILD
parent6b015d22b5b59eddb6e8c40989017d8492ac912c (diff)
parenta4d309341dbcd3c28ee68e818c1d5ef54114adf8 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/libraw/PKGBUILD community-testing/virtualbox-modules/PKGBUILD community-testing/virtualbox-modules/virtualbox-modules.install community-testing/virtualbox/PKGBUILD community-testing/virtualbox/vboxdrv-reference.patch community-testing/virtualbox/virtualbox.install community-testing/vtk/PKGBUILD community/audex/PKGBUILD community/critter/PKGBUILD community/egoboo/PKGBUILD community/fcgiwrap/PKGBUILD community/hping/PKGBUILD community/libesmtp/PKGBUILD community/lockdev/PKGBUILD community/pidgin-musictracker/PKGBUILD community/pidgin-otr/PKGBUILD community/pylibacl/PKGBUILD community/pypanel/PKGBUILD community/rdiff-backup/PKGBUILD community/steghide/PKGBUILD community/tabbed/PKGBUILD community/transset-df/PKGBUILD community/wyrd/PKGBUILD core/openldap/PKGBUILD core/sqlite3/PKGBUILD extra/fltk/PKGBUILD extra/thunar/PKGBUILD extra/xfce4-clipman-plugin/PKGBUILD multilib/lib32-acl/PKGBUILD multilib/lib32-alsa-oss/PKGBUILD multilib/lib32-glib2/PKGBUILD multilib/lib32-libffi/PKGBUILD multilib/lib32-libmng/PKGBUILD multilib/lib32-libpciaccess/PKGBUILD multilib/lib32-libusb-compat/PKGBUILD multilib/lib32-libusb/PKGBUILD multilib/wine/PKGBUILD
Diffstat (limited to 'testing/flex/PKGBUILD')
-rw-r--r--testing/flex/PKGBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/flex/PKGBUILD b/testing/flex/PKGBUILD
new file mode 100644
index 000000000..828cd9b84
--- /dev/null
+++ b/testing/flex/PKGBUILD
@@ -0,0 +1,59 @@
+# $Id: PKGBUILD 141917 2011-11-03 06:31:54Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=flex
+pkgver=2.5.35
+pkgrel=5
+pkgdesc="A tool for generating text-scanning programs"
+arch=('i686' 'x86_64')
+url="http://flex.sourceforge.net"
+license=('custom')
+groups=('base-devel')
+depends=('glibc' 'm4' 'sh')
+install=flex.install
+source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
+ flex-2.5.35-gcc44.patch
+ flex-2.5.35-hardening.patch
+ flex-2.5.35-missing-prototypes.patch
+ flex-2.5.35-sign.patch
+ lex.sh)
+md5sums=('10714e50cea54dc7a227e3eddcd44d57'
+ 'e4444ef5c07db71a43280be74139bdea'
+ 'de952b3ed7cc074bc8c3e6ab73634048'
+ '6b83f56b1b654c6a321cdc530a3ec68d'
+ 'd87fd9e9762ba7e230d516bdcf1c8c6f'
+ 'f725259ec23a9e87ee29e2ef82eda9a5')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ patch -Np1 -i $srcdir/flex-2.5.35-gcc44.patch
+ patch -Np1 -i $srcdir/flex-2.5.35-hardening.patch
+ patch -Np1 -i $srcdir/flex-2.5.35-missing-prototypes.patch
+ patch -Np1 -i $srcdir/flex-2.5.35-sign.patch
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd $srcdir/$pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make prefix=$pkgdir/usr \
+ mandir=$pkgdir/usr/share/man \
+ infodir=$pkgdir/usr/share/info \
+ install
+ install -Dm755 $srcdir/lex.sh $pkgdir/usr/bin/lex
+
+ install -Dm644 COPYING \
+ $pkgdir/usr/share/licenses/$pkgname/license.txt
+
+}
+