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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 18:43:57 UTC 2018


    Date: Tuesday, November 6, 2018 @ 18:43:57
  Author: felixonmars
Revision: 401863

upgpkg: haskell-file-embed 0.0.11-3

rebuild with ghc 8.6.1

Modified:
  haskell-file-embed/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 18:43:19 UTC (rev 401862)
+++ PKGBUILD	2018-11-06 18:43:57 UTC (rev 401863)
@@ -4,7 +4,7 @@
 _hkgname=file-embed
 pkgname=haskell-file-embed
 pkgver=0.0.11
-pkgrel=2
+pkgrel=3
 pkgdesc="Use Template Haskell to embed file contents directly."
 url="https://github.com/snoyberg/file-embed"
 license=("custom:BSD3")
@@ -15,10 +15,10 @@
 sha512sums=('2c6ac6bdf951706a6d2cfe317bb6c50e3fb166acd746ff9af0420212bfc8f298cf4dea08b2e38cb4615b98cbc15954e1b7d46918970234e4ab91012e34bf7b41')
 
 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