summaryrefslogtreecommitdiff
path: root/testing/alex/PKGBUILD
blob: b11156af0d1dc2d98cfdabb615f2f4e7154590fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 128111 2011-06-22 10:56:28Z vesa $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Philip Nilsson <pnilsson@nullref.se>

pkgname=alex
pkgver=2.3.5
pkgrel=1.3
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.0.3')
source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")

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
}
md5sums=('5e08c688ded0dcff98eaad6fc03a9402')