[arch-commits] Commit in haskell-hslua/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu May 2 23:48:42 UTC 2019


    Date: Thursday, May 2, 2019 @ 23:48:41
  Author: felixonmars
Revision: 458005

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

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

Copied: haskell-hslua/repos/community-staging-x86_64/PKGBUILD (from rev 458004, haskell-hslua/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-02 23:48:41 UTC (rev 458005)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hslua
+pkgname=haskell-hslua
+pkgver=1.0.2
+pkgrel=11
+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')
+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=('da73af5e971694b987ae4c00e75d1e5cc7438e5a9be5d1b90c5c9364123223c9e6a958af86a5c4b67400e7e32f9a8feefd3a10d72eaf618a10164f9efb1c0ac1')
+
+prepare() {
+    sed -e '/, fail/d' \
+        -e 's/pkgconfig-depends: lua5.3/pkgconfig-depends: lua53/' \
+        -i $_hkgname-$pkgver/$_hkgname.cabal
+}
+
+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
+    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"
+}



More information about the arch-commits mailing list