summaryrefslogtreecommitdiff
path: root/community-staging/alex
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-13 00:04:38 +0000
committerroot <root@rshg054.dnsready.net>2012-09-13 00:04:38 +0000
commit843685ce9dd76d37a4c7b0230eacb6d26bdf30dd (patch)
tree9151f782b8f347cf28e0f398341441d659f41f4a /community-staging/alex
parent21c375ba65c4730e25cd0b135aff7811bf28c77a (diff)
Thu Sep 13 00:04:37 UTC 2012
Diffstat (limited to 'community-staging/alex')
-rw-r--r--community-staging/alex/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community-staging/alex/PKGBUILD b/community-staging/alex/PKGBUILD
new file mode 100644
index 000000000..eadf607c6
--- /dev/null
+++ b/community-staging/alex/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 76079 2012-09-11 04:43:36Z 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=2
+pkgdesc='a lexical analyser generator for Haskell'
+arch=('i686' 'x86_64')
+url='http://hackage.haskell.org/package/alex'
+license=('custom:BSD3')
+depends=('gmp')
+makedepends=('ghc=7.6.1-1' 'haskell-quickcheck=2.5-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
+}