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

Felix Yan felixonmars at archlinux.org
Fri Nov 3 10:07:10 UTC 2017


    Date: Friday, November 3, 2017 @ 10:07:09
  Author: felixonmars
Revision: 265293

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-hslua/repos/community-staging-i686/
  haskell-hslua/repos/community-staging-i686/PKGBUILD
    (from rev 265292, haskell-hslua/trunk/PKGBUILD)
  haskell-hslua/repos/community-staging-x86_64/
  haskell-hslua/repos/community-staging-x86_64/PKGBUILD
    (from rev 265292, haskell-hslua/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   46 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

Copied: haskell-hslua/repos/community-staging-i686/PKGBUILD (from rev 265292, haskell-hslua/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-11-03 10:07:09 UTC (rev 265293)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hslua
+pkgname=haskell-hslua
+pkgver=0.9.2
+pkgrel=1
+pkgdesc="A Lua language interpreter embedding in Haskell"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("MIT")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'lua' 'haskell-exceptions' 'haskell-mtl' 'haskell-text')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('023bec4d9850525d7b367cad2917cbb5dad23d4509e29130e1a646def3ff718064b8d5fc7e566db8c86b4c054d5c9f6e794522b7680eb2010b736b1f81abb887')
+
+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}" \
+        --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
+}
+
+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"
+}

Copied: haskell-hslua/repos/community-staging-x86_64/PKGBUILD (from rev 265292, haskell-hslua/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-03 10:07:09 UTC (rev 265293)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hslua
+pkgname=haskell-hslua
+pkgver=0.9.2
+pkgrel=1
+pkgdesc="A Lua language interpreter embedding in Haskell"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("MIT")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'lua' 'haskell-exceptions' 'haskell-mtl' 'haskell-text')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('023bec4d9850525d7b367cad2917cbb5dad23d4509e29130e1a646def3ff718064b8d5fc7e566db8c86b4c054d5c9f6e794522b7680eb2010b736b1f81abb887')
+
+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}" \
+        --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
+}
+
+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"
+}



More information about the arch-commits mailing list