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

Felix Yan felixonmars at archlinux.org
Tue May 11 23:42:06 UTC 2021


    Date: Tuesday, May 11, 2021 @ 23:42:06
  Author: felixonmars
Revision: 930988

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-regex-applicative-text/repos/community-staging-x86_64/PKGBUILD (from rev 930987, haskell-regex-applicative-text/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-11 23:42:06 UTC (rev 930988)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=regex-applicative-text
+pkgname=haskell-regex-applicative-text
+pkgver=0.1.0.1
+pkgrel=98
+pkgdesc="Wrapped regex-applicative primitives to work with Text"
+url="https://github.com/phadej/regex-applicative-text#readme"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-regex-applicative")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8ee1d581498e047a7b759476ce98c43c19656b767790b0f12b8485bc212a71c7115cee5c3e5089392995bc71851025093c406bce9d8ac3c5962675ae06fa4339')
+
+prepare() {
+    sed -i 's/base >= 4.3 && <4.10/base >= 4.3/' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
+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 $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