desktop/happy/PKGBUILD

28 lines
862 B
Bash
Raw Normal View History

2014-04-25 07:31:51 +08:00
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributors: Adrián Chaves Frenández (Gallaecio) <adriyetichaves@gmail.com>
## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ##
2011-10-10 02:06:48 +08:00
pkgname=happy
2015-02-23 07:43:59 +08:00
pkgver=1.19.5
pkgrel=2
2011-10-10 02:06:48 +08:00
pkgdesc="The Parser Generator for Haskell"
2014-04-24 04:39:51 +08:00
url="http://hackage.haskell.org/package/happy"
2014-04-24 00:34:09 +08:00
arch=('x86_64')
2011-10-10 02:06:48 +08:00
license=("custom:BSD3")
2014-04-24 00:34:09 +08:00
depends=('gmp')
2015-02-23 07:43:59 +08:00
makedepends=('ghc' 'haskell-mtl')
2011-10-10 02:06:48 +08:00
options=(strip)
source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
2015-02-23 07:43:59 +08:00
md5sums=('ffa56a1c312a60dfb1110afd25b28785')
2011-10-10 02:06:48 +08:00
2014-04-24 00:34:09 +08:00
package() {
cd ${srcdir}/${pkgname}-${pkgver}
2011-10-10 02:06:48 +08:00
2014-04-24 00:34:09 +08:00
runhaskell Setup.lhs configure --prefix=/usr
runhaskell Setup.lhs build
runhaskell Setup.lhs copy --destdir=$pkgdir
2011-10-10 02:06:48 +08:00
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
2011-10-10 02:06:48 +08:00
}