[arch-commits] Commit in haskell-hsyaml/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun May 19 14:20:37 UTC 2019


    Date: Sunday, May 19, 2019 @ 14:20:37
  Author: felixonmars
Revision: 467969

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-hsyaml/repos/community-staging-x86_64/
  haskell-hsyaml/repos/community-staging-x86_64/PKGBUILD
    (from rev 467968, haskell-hsyaml/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: haskell-hsyaml/repos/community-staging-x86_64/PKGBUILD (from rev 467968, haskell-hsyaml/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-19 14:20:37 UTC (rev 467969)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=HsYAML
+pkgname=haskell-hsyaml
+pkgver=0.1.2.0
+pkgrel=1
+pkgdesc="Pure Haskell YAML 1.2 parser"
+url="https://github.com/hvr/HsYAML"
+license=('GPL')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('540123f547e4f76241a1282f87f45b0af282076a6edcd73c52a5362b5f5bcc50b92fef0c6a611ebdca25f8b5e9a9825911d42d2b9be75e9bbea214a3718dd9c3')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build
+    runhaskell Setup register --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    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"
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.GPLv{2,3}
+}



More information about the arch-commits mailing list