[arch-commits] Commit in haskell-mockery/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Nov 7 09:06:49 UTC 2018


    Date: Wednesday, November 7, 2018 @ 09:06:49
  Author: felixonmars
Revision: 402521

upgpkg: haskell-mockery 0.3.5-36

rebuild with ghc 8.6.2

Modified:
  haskell-mockery/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-07 09:06:15 UTC (rev 402520)
+++ PKGBUILD	2018-11-07 09:06:49 UTC (rev 402521)
@@ -4,7 +4,7 @@
 _hkgname=mockery
 pkgname=haskell-mockery
 pkgver=0.3.5
-pkgrel=35
+pkgrel=36
 pkgdesc="Support functions for automated testing"
 url="https://github.com/hspec/mockery"
 license=("MIT")
@@ -15,10 +15,10 @@
 sha512sums=('bcb9bef083749028ec27ba879feca7c7a8f966f50b31fe1df3e82b3ac206b634b961755e4ee90ebc72ba8c17be3bbab6acf1b01776bca9497cc5cbc1ccb58850')
 
 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,11 +33,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"
 }


More information about the arch-commits mailing list