Date: Monday, January 18, 2021 @ 01:52:05 Author: felixonmars Revision: 822278
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hslua/repos/community-staging-x86_64/ haskell-hslua/repos/community-staging-x86_64/PKGBUILD (from rev 822277, haskell-hslua/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: haskell-hslua/repos/community-staging-x86_64/PKGBUILD (from rev 822277, haskell-hslua/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-01-18 01:52:05 UTC (rev 822278) @@ -0,0 +1,45 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=hslua +pkgname=haskell-hslua +pkgver=1.3.0 +pkgrel=23 +pkgdesc="A Lua language interpreter embedding in Haskell" +url="https://hackage.haskell.org/package/${_hkgname}" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'lua53') +makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-tasty' + 'haskell-tasty-expected-failure' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('ee8325992415a9c057111053ce8ec025560d7687abb1f49608f29f26d66717ec4335d9d56f55666bb598caa0d630672029ad2df9b1dab6ce4b2c79890f787302') + +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 \ + -fsystem-lua -fpkg-config + 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 +} + +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 +}