Date: Sunday, March 1, 2020 @ 09:55:33 Author: felixonmars Revision: 587398
archrelease: copy trunk to community-staging-x86_64 Added: haskell-primitive/repos/community-staging-x86_64/ haskell-primitive/repos/community-staging-x86_64/PKGBUILD (from rev 587397, haskell-primitive/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: haskell-primitive/repos/community-staging-x86_64/PKGBUILD (from rev 587397, haskell-primitive/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-03-01 09:55:33 UTC (rev 587398) @@ -0,0 +1,36 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com> + +pkgname=haskell-primitive +pkgver=0.7.0.1 +pkgrel=1 +pkgdesc="Wrappers for primitive operations" +url="https://hackage.haskell.org/package/primitive" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/primitive/${pkgver}/primitive-${pkgver}.tar.gz") +sha512sums=('bb9be965ff22bc3184962ce35f3b0ff3ad6a5bb42735ea0ea7e33d4a122a2833381b8f04950b3cc8a6ccd792f72f2b06a291c462c381b87044dd8e06240d093c') + +build() { + cd primitive-$pkgver + # TODO: tests + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --disable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + 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 +} + +package() { + cd primitive-$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 -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE + rm -f "$pkgdir"/usr/share/doc/${pkgname}/LICENSE +}