Date: Tuesday, November 6, 2018 @ 20:52:27 Author: felixonmars Revision: 402154
archrelease: copy trunk to community-staging-x86_64 Added: haskell-language-c/repos/community-staging-x86_64/ haskell-language-c/repos/community-staging-x86_64/PKGBUILD (from rev 402153, haskell-language-c/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: haskell-language-c/repos/community-staging-x86_64/PKGBUILD (from rev 402153, haskell-language-c/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-11-06 20:52:27 UTC (rev 402154) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=language-c +pkgname=haskell-language-c +pkgver=0.8.2 +pkgrel=3 +pkgdesc="Analysis and generation of C code" +url="http://visq.github.io/language-c/" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-syb') +makedepends=('happy' 'alex' 'ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('39554d17c967422b2a927eb3f70e68aba8ba1e6ad2464613b75f0e353282dbe0c61c29030cccc514adeb2a85c12c33d4f74f4e74973f7a3a7fbac777c9743e24') + +build() { + cd $_hkgname-$pkgver + + rm -fr dist + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -fseparatesyb -fusebytestrings -f-allwarnings -fiecfpextension + runhaskell Setup build + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_hkgname-$pkgver + + install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh + install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh + runhaskell Setup copy --destdir="$pkgdir" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}