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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 22:12:15 UTC 2018


    Date: Tuesday, November 6, 2018 @ 22:12:15
  Author: felixonmars
Revision: 402320

upgpkg: haskell-language-python 0.5.4-10

rebuild with ghc 8.6.2

Modified:
  haskell-language-python/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 22:10:22 UTC (rev 402319)
+++ PKGBUILD	2018-11-06 22:12:15 UTC (rev 402320)
@@ -4,7 +4,7 @@
 _hkgname=language-python
 pkgname=haskell-language-python
 pkgver=0.5.4
-pkgrel=9
+pkgrel=10
 pkgdesc="Parsing and pretty printing of Python code."
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("custom:BSD3")
@@ -17,7 +17,7 @@
             'ce812b6937158977a85c2b5c1118a79779570bd4023ac58b22d9e2960e24be98b107e733c3ed90ed9977d20e757d56c6e2e3ea48d473f3e6d42589fa2c8281ea')
 
 prepare() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
     patch -p1 -i ../ghc-8.2.1.patch
 
     sed -i 's/== *0.5/==0.6/' $_hkgname.cabal
@@ -27,10 +27,10 @@
 }
 
 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 \
             -fsplit-base
     runhaskell Setup build
@@ -41,11 +41,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