[arch-commits] Commit in haskell-data-accessor-template/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Nov 6 22:16:45 UTC 2018


    Date: Tuesday, November 6, 2018 @ 22:16:45
  Author: felixonmars
Revision: 402331

upgpkg: haskell-data-accessor-template 0.2.1.16-4

rebuild with ghc 8.6.2

Modified:
  haskell-data-accessor-template/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-06 22:16:07 UTC (rev 402330)
+++ PKGBUILD	2018-11-06 22:16:45 UTC (rev 402331)
@@ -4,7 +4,7 @@
 _hkgname=data-accessor-template
 pkgname=haskell-data-accessor-template
 pkgver=0.2.1.16
-pkgrel=3
+pkgrel=4
 pkgdesc="Automate generation of Accessor's of the data-accessor package by Template Haskell functions."
 url="http://www.haskell.org/haskellwiki/Record_access"
 license=("custom:BSD3")
@@ -15,10 +15,10 @@
 sha512sums=('428b4bc9703f63e5457654c500aefb5c257ec030c0554fc31bd5b629bd281d7e4adda320e3bf22bca4a32b440d6eb3697503eafd92532791580a89cf1c196696')
 
 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