[arch-commits] Commit in haskell-hxt-regex-xmlschema/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jun 6 23:52:51 UTC 2021


    Date: Sunday, June 6, 2021 @ 23:52:51
  Author: felixonmars
Revision: 956689

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-hxt-regex-xmlschema/repos/community-staging-x86_64/
  haskell-hxt-regex-xmlschema/repos/community-staging-x86_64/PKGBUILD
    (from rev 956688, haskell-hxt-regex-xmlschema/trunk/PKGBUILD)

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

Copied: haskell-hxt-regex-xmlschema/repos/community-staging-x86_64/PKGBUILD (from rev 956688, haskell-hxt-regex-xmlschema/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-06 23:52:51 UTC (rev 956689)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=hxt-regex-xmlschema
+pkgname=haskell-hxt-regex-xmlschema 
+pkgver=9.2.0.7
+pkgrel=3
+pkgdesc="A regular expression library for W3C XML Schema regular expressions"
+url="https://www.haskell.org/haskellwiki/Regular_expressions_for_XML_Schema"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hxt-charproperties')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8ce1b2c1bcc79f8072d5b1dcfc9d184bb3286065b290e4df80fd02d454725d97d4346554a913a167eb97a45fba43b5000a08e8a9cf1dac129ff261b917d2e4cf')
+
+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 \
+            -f-profile
+    runhaskell Setup build $MAKEFLAGS
+    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