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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 21:51:09 UTC 2018


    Date: Tuesday, November 6, 2018 @ 21:51:08
  Author: felixonmars
Revision: 402276

upgpkg: haskell-optparse-applicative 0.14.3.0-4

rebuild with ghc 8.6.2

Modified:
  haskell-optparse-applicative/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 21:50:31 UTC (rev 402275)
+++ PKGBUILD	2018-11-06 21:51:08 UTC (rev 402276)
@@ -4,7 +4,7 @@
 _hkgname=optparse-applicative
 pkgname=haskell-optparse-applicative
 pkgver=0.14.3.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Utilities and combinators for parsing command line options"
 url="https://github.com/pcapriotti/optparse-applicative"
 license=("custom:BSD3")
@@ -15,10 +15,10 @@
 sha512sums=('4673aff5398328aed82928a006c62b595dcadf61e0910c258a3c6296fe089293553e13e1791c3a1af45c336d568c8e3f52938f09489a15f592849651cf0357f7')
 
 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