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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 19:24:38 UTC 2018


    Date: Tuesday, November 6, 2018 @ 19:24:38
  Author: felixonmars
Revision: 401964

upgpkg: haskell-microlens 0.4.10-2

rebuild with ghc 8.6.1

Modified:
  haskell-microlens/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 19:24:06 UTC (rev 401963)
+++ PKGBUILD	2018-11-06 19:24:38 UTC (rev 401964)
@@ -4,7 +4,7 @@
 _hkgname=microlens
 pkgname=haskell-microlens
 pkgver=0.4.10
-pkgrel=1
+pkgrel=2
 pkgdesc="A tiny lens library with no dependencies. If you're writing an app, you probably want microlens-platform, not this."
 url="https://github.com/monadfix/microlens"
 license=("custom:BSD3")
@@ -15,10 +15,10 @@
 sha512sums=('c5f774fdbd36e3fc82563c8d3f87a6471af2129e244b2fc4af7ffb8c171e06154c0b708c9e74c95b54859b3e9f12feff25b2950262527084c2ae2acb254e9a45')
 
 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