summaryrefslogtreecommitdiff
path: root/community-testing/alex/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/alex/PKGBUILD')
-rw-r--r--community-testing/alex/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community-testing/alex/PKGBUILD b/community-testing/alex/PKGBUILD
new file mode 100644
index 000000000..a43506d80
--- /dev/null
+++ b/community-testing/alex/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 72292 2012-06-11 17:24:33Z tdziedzic $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
+# Contributor: Philip Nilsson <pnilsson@nullref.se>
+
+pkgname=alex
+pkgver=3.0.2
+pkgrel=1
+pkgdesc='a lexical analyser generator for Haskell'
+arch=('i686' 'x86_64')
+url='http://www.haskell.org/alex/'
+license=('custom:BSD3')
+depends=('gmp')
+makedepends=('ghc=7.4.2-1' 'haskell-quickcheck=2.4.2-2')
+source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+md5sums=('b8f0d831b65d05e5f54ff08bd3d9d10d')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ runghc Setup.lhs configure --prefix=/usr --datasubdir=$pkgname
+ runghc Setup.lhs build
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ runghc Setup.lhs copy --destdir=$pkgdir
+ install -D -m644 LICENSE $pkgdir/usr/share/licenses/alex/BSD3
+
+ # doc/ contains only license which already installed into proper place
+ rm -rf $pkgdir/usr/share/doc
+}