summaryrefslogtreecommitdiff
path: root/community/alex
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/alex
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/alex')
-rw-r--r--community/alex/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/alex/PKGBUILD b/community/alex/PKGBUILD
new file mode 100644
index 000000000..25345ec7e
--- /dev/null
+++ b/community/alex/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 89285 2013-04-28 16:52:06Z td123 $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
+# Contributor: Philip Nilsson <pnilsson@nullref.se>
+
+pkgname=alex
+pkgver=3.0.5
+pkgrel=2
+pkgdesc='Lexical analyser generator for Haskell'
+arch=('x86_64' 'i686')
+url='http://hackage.haskell.org/package/alex'
+license=('custom:BSD3')
+depends=('gmp')
+makedepends=('ghc=7.6.3-1' 'haskell-quickcheck>=2')
+source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('c3326417a0538e355e5ad1871ab931b9c8145391e8b2ff79668eb643d9b99659')
+
+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 -Dm644 LICENSE "$pkgdir/usr/share/licenses/alex/BSD3"
+ # doc only contains the license
+ rm -rf $pkgdir/usr/share/doc
+}
+
+# vim:set ts=2 sw=2 et: