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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 22:14:55 UTC 2018


    Date: Tuesday, November 6, 2018 @ 22:14:54
  Author: felixonmars
Revision: 402327

upgpkg: haskell-url 2.1.3-5

rebuild with ghc 8.6.2

Modified:
  haskell-url/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 22:14:29 UTC (rev 402326)
+++ PKGBUILD	2018-11-06 22:14:54 UTC (rev 402327)
@@ -4,7 +4,7 @@
 _hkgname=url
 pkgname=haskell-url
 pkgver=2.1.3
-pkgrel=4
+pkgrel=5
 pkgdesc="A library for working with URLs"
 url="http://www.haskell.org/haskellwiki/Url"
 license=("custom:BSD3")
@@ -15,10 +15,10 @@
 sha512sums=('53ee2aabc877c91d06c7e029ff807057f88bb4ce712ad02d47655d43869ad83af9032eea85d0ecddf3cad19839827bb723c9bf0a17b580ee7018f4b08c691cd8')
 
 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