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

Felix Yan felixonmars at archlinux.org
Mon Aug 19 15:17:10 UTC 2019


    Date: Monday, August 19, 2019 @ 15:17:10
  Author: felixonmars
Revision: 500172

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-regex-applicative/repos/community-staging-x86_64/
  haskell-regex-applicative/repos/community-staging-x86_64/PKGBUILD
    (from rev 500171, haskell-regex-applicative/trunk/PKGBUILD)

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

Copied: haskell-regex-applicative/repos/community-staging-x86_64/PKGBUILD (from rev 500171, haskell-regex-applicative/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-08-19 15:17:10 UTC (rev 500172)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=regex-applicative
+pkgname=haskell-regex-applicative
+pkgver=0.3.3.1
+pkgrel=1
+pkgdesc="Regex-based parsing with applicative interface"
+url="https://github.com/feuerbach/regex-applicative"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('6cef57ef228983b3662616221c6275ffa024bebee4dddf21041e9a8a4efc8b5e905bacdf31534078f9a34b3915a630e823bf0a910c27b11f8a961ee8f87cd9d3')
+
+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"
+    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