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

Felix Yan felixonmars at archlinux.org
Thu Apr 25 11:43:07 UTC 2019


    Date: Thursday, April 25, 2019 @ 11:43:06
  Author: felixonmars
Revision: 453729

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-libxml/repos/community-staging-x86_64/PKGBUILD (from rev 453728, haskell-libxml/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-04-25 11:43:06 UTC (rev 453729)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=libxml
+pkgname=haskell-libxml
+pkgver=0.1.1
+pkgrel=9
+pkgdesc="Binding to libxml2"
+url="https://hackage.haskell.org/package/libxml"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'libxml2')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('59a52200e7c7ab17a60a89e4a3aefdf6356e868be6be53696e5708a4d30863ae879834404ccfecb91b6d4b93a7ce0e147a3cc04bc4d5838c2aa990a290af5c5c')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --extra-include-dirs=/usr/include/libxml2 \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -fsmall_base
+    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"
+    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