Date: Wednesday, November 7, 2018 @ 09:28:48
  Author: felixonmars
Revision: 402551

upgpkg: haskell-stringbuilder 0.5.1-37

rebuild with ghc 8.6.2

Modified:
  haskell-stringbuilder/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-11-07 09:28:14 UTC (rev 402550)
+++ PKGBUILD    2018-11-07 09:28:48 UTC (rev 402551)
@@ -4,7 +4,7 @@
 _hkgname=stringbuilder
 pkgname=haskell-stringbuilder
 pkgver=0.5.1
-pkgrel=36
+pkgrel=37
 pkgdesc="A writer monad for multi-line string literals"
 url="https://github.com/sol/stringbuilder";
 license=("MIT")
@@ -16,7 +16,7 @@
 
sha512sums=('09cbf01dce82b325393c0d6f0264792695d528a184052f5e1d5dbd3fc181fd11c280e77ba445f1e44c6a8dabc0b267aa90f4a9f1fc34135f1b741d2a5dca9369')
 
 build() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
 
     if (( CHECKFUNC )); then
         _opts=('--enable-tests')
@@ -25,7 +25,7 @@
     fi
 
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" "${_opts[@]}" \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -40,11 +40,11 @@
 }
 
 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"
 }

Reply via email to