Date: Friday, August 26, 2022 @ 16:16:27 Author: felixonmars Revision: 1283070
archrelease: copy trunk to community-staging-x86_64 Added: haskell-serialise/repos/community-staging-x86_64/ haskell-serialise/repos/community-staging-x86_64/PKGBUILD (from rev 1283069, haskell-serialise/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: haskell-serialise/repos/community-staging-x86_64/PKGBUILD (from rev 1283069, haskell-serialise/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-26 16:16:27 UTC (rev 1283070) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=serialise +pkgname=haskell-serialise +pkgver=0.2.5.0 +pkgrel=26 +pkgdesc="A binary serialisation library for Haskell values" +url="https://github.com/well-typed/cborg" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-cborg' 'haskell-half' 'haskell-hashable' 'haskell-primitive' + 'haskell-strict' 'haskell-these' 'haskell-unordered-containers' 'haskell-vector') +makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-tasty' + 'haskell-tasty-hunit' 'haskell-tasty-quickcheck') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('6fc510815f1c8c3355b797d0415746cb4ff8f980ba69d224be3915805423f54cb5e4df151d8abbc6b8d236e0b07c3161f75611d5bbd572f90fa7ed55e5b3b809') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + runhaskell Setup build $MAKEFLAGS + 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 --show-details=direct +} + +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.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.txt +}