mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
22 lines
726 B
Bash
22 lines
726 B
Bash
# Contributor: Philip Nilsson <pnilsson@nullref.se>
|
|
pkgname=alex
|
|
pkgver=2.3.1
|
|
pkgrel=1
|
|
pkgdesc='a lexical analyser generator for Haskell'
|
|
url='http://www.haskell.org/alex/'
|
|
license=('custom:BSD3')
|
|
arch=('i686' 'x86_64')
|
|
depends=('gmp')
|
|
makedepends=('ghc' 'haskell-cabal')
|
|
source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('a8c26af3370388297cee4b8c767d72d9')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
runghc Setup.lhs configure --prefix=/usr --datasubdir=$pkgname
|
|
runghc Setup.lhs build
|
|
runghc Setup.lhs copy --destdir=$pkgdir
|
|
install -D -m644 LICENSE $pkgdir/usr/share/licenses/alex/BSD3
|
|
# The license is installed here as well.
|
|
rm -Rf $pkgdir/usr/share/doc
|
|
}
|