Date: Wednesday, March 7, 2018 @ 10:55:32
  Author: felixonmars
Revision: 303676

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 303675, haskell-hslua/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: haskell-hslua/repos/community-staging-x86_64/PKGBUILD (from rev 303675, 
haskell-hslua/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-07 10:55:32 UTC (rev 303676)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=hslua
+pkgname=haskell-hslua
+pkgver=0.9.5.1
+pkgrel=4
+pkgdesc="A Lua language interpreter embedding in Haskell"
+url="https://hackage.haskell.org/package/${_hkgname}";
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'lua' 'haskell-exceptions' 'haskell-mtl' 'haskell-text')
+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=('ba65094835a015b1a33356cbce1b2e6eca505ad889a699b1dc16adc9b7cde4f88cf70636d3f3ebf386e52bd8fd30aba8249a1eb49bf05e122408da53b431874a')
+
+prepare() {
+    sed -e '/, fail/d' \
+        -e 's/pkgconfig-depends: lua5.3/pkgconfig-depends: lua53/' \
+        -i $_hkgname-$pkgver/$_hkgname.cabal
+}
+
+build() {
+    cd "${srcdir}/${_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 \
+            -f-luajit -f-apicheck -fsystem-lua -f-lua_32bits -fallow-unsafe-gc 
-fexport-dynamic -f-lua501 -f-lua502 -fuse-pkgconfig
+    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 "${srcdir}/${_hkgname}-${pkgver}"
+    runhaskell Setup test
+}
+
+package() {
+    cd "${srcdir}/${_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 "COPYRIGHT" 
"${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYRIGHT"
+}

Reply via email to