blob: 06e7af6edaa154c2ee6c93467c2b831afea56393 (
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 77005 2012-10-03 15:23:22Z 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
}
|