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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 23:16:51 UTC 2018


    Date: Tuesday, November 6, 2018 @ 23:16:50
  Author: felixonmars
Revision: 402439

upgpkg: haskell-x11 1.9-3

rebuild with ghc 8.6.2

Modified:
  haskell-x11/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 23:15:48 UTC (rev 402438)
+++ PKGBUILD	2018-11-06 23:16:50 UTC (rev 402439)
@@ -5,7 +5,7 @@
 _hkgname=X11
 pkgname=haskell-x11
 pkgver=1.9
-pkgrel=2
+pkgrel=3
 pkgdesc="A Haskell binding to the X11 graphics library."
 arch=(x86_64)
 url="https://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11"
@@ -17,10 +17,10 @@
 sha512sums=('6d6cc42e2b4a996478f40511876ef07b36bb047673da8f0471d37f9dc4f50bf763b484aa421c987be6fe7726fad0127f9ceb558435af3550622b9e7649e91516')
 
 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
@@ -30,11 +30,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