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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 18:53:31 UTC 2018


    Date: Tuesday, November 6, 2018 @ 18:53:31
  Author: felixonmars
Revision: 401885

upgpkg: haskell-gitrev 1.3.1-11

rebuild with ghc 8.6.1

Modified:
  haskell-gitrev/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 18:52:56 UTC (rev 401884)
+++ PKGBUILD	2018-11-06 18:53:31 UTC (rev 401885)
@@ -4,7 +4,7 @@
 _hkgname=gitrev
 pkgname=haskell-gitrev
 pkgver=1.3.1
-pkgrel=10
+pkgrel=11
 pkgdesc="Compile git revision info into Haskell projects"
 url="https://github.com/acfoltzer/gitrev"
 license=("custom:BSD3")
@@ -15,10 +15,10 @@
 sha512sums=('8639e356490fba3461f8d7030326a6913846427255524213a73ee2ac5abf708f75efed99a0d9d574a73a2db88833814d1b634e6a5ec93c4bc03052435e0ea4cd')
 
 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}" \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -28,11 +28,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