archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / happy / trunk / PKGBUILD
blobd5b28edb3ff96a9124bc62def4255c9f291f6551
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Thomas Dziedzic <gostrc@gmail.com>
3 # Contributor: simo <simo@archlinux.org>
4 # Contributor: Vesa Kaihlavirta <vegai@iki.fi>
6 pkgname=happy
7 pkgver=1.20.1.1
8 pkgrel=1
9 pkgdesc="The Parser Generator for Haskell"
10 url="https://hackage.haskell.org/package/happy"
11 arch=('x86_64')
12 license=("custom:BSD2")
13 depends=('ghc-libs')
14 makedepends=('ghc')
15 source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
16 sha512sums=('a2ff6a1778884de22f4900a22b8a451ed5dc8a8e66020ce9e186a03068257748a3810c63b56f1efa0b646d99fe637f87178983f387d4c49bc33b82613877ec48')
18 build() {
19   cd "${srcdir}/${pkgname}-${pkgver}"
21   runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
22         --ghc-option='-dynload=deploy' --prefix=/usr --datasubdir=$pkgname
23   runhaskell Setup build $MAKEFLAGS
26 package() {
27   cd "${srcdir}/${pkgname}-${pkgver}"
28   runhaskell Setup copy --destdir="${pkgdir}"
29   rm -r "$pkgdir/usr/share/doc"
30   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"