[arch-commits] Commit in haskell-hslua-module-text/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Nov 7 10:36:44 UTC 2018


    Date: Wednesday, November 7, 2018 @ 10:36:44
  Author: felixonmars
Revision: 402676

upgpkg: haskell-hslua-module-text 0.2.0-8

rebuild with ghc 8.6.2

Modified:
  haskell-hslua-module-text/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-07 10:36:09 UTC (rev 402675)
+++ PKGBUILD	2018-11-07 10:36:44 UTC (rev 402676)
@@ -4,7 +4,7 @@
 _hkgname=hslua-module-text
 pkgname=haskell-hslua-module-text
 pkgver=0.2.0
-pkgrel=7
+pkgrel=8
 pkgdesc="Lua module for text"
 url="https://github.com/hslua/hslua-module-test"
 license=("MIT")
@@ -20,10 +20,10 @@
 }
 
 build() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
 
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -33,16 +33,16 @@
 }
 
 check() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
     runhaskell Setup test
 }
 
 package() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    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 -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