Date: Monday, March 21, 2022 @ 13:33:05 Author: felixonmars Revision: 1166858
addpkg: haskell-hslua-aeson 2.0.1-1 Added: haskell-hslua-aeson/ haskell-hslua-aeson/repos/ haskell-hslua-aeson/trunk/ haskell-hslua-aeson/trunk/PKGBUILD ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Added: haskell-hslua-aeson/trunk/PKGBUILD =================================================================== --- haskell-hslua-aeson/trunk/PKGBUILD (rev 0) +++ haskell-hslua-aeson/trunk/PKGBUILD 2022-03-21 13:33:05 UTC (rev 1166858) @@ -0,0 +1,54 @@ +# This file was generated by https://github.com/berberman/arch-hs, please check it manually. +# Maintainer: Your Name <[email protected]> + +_hkgname=hslua-aeson +pkgname=haskell-hslua-aeson +pkgver=2.0.1 +pkgrel=1 +pkgdesc="Allow aeson data types to be used with Lua." +url="https://hslua.org/" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-hashable' 'haskell-hslua-core' + 'haskell-hslua-marshalling' 'haskell-scientific' 'haskell-unordered-containers' + 'haskell-vector') +makedepends=('ghc' 'uusi' 'haskell-ieee754' '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") +sha256sums=('b040f46030069d2261ce079cfdad8ad99e3e1e5bbf61b75f0b587b79d17f459e') + +prepare() { + cd $_hkgname-$pkgver + gen-setup +} + +build() { + cd $_hkgname-$pkgver + + 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 \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' + + 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 -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}
