Date: Monday, January 10, 2022 @ 19:00:23
  Author: felixonmars
Revision: 1099827

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-regex-posix/repos/community-staging-x86_64/PKGBUILD (from rev 
1099826, haskell-regex-posix/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-01-10 19:00:23 UTC (rev 1099827)
@@ -0,0 +1,39 @@
+# Maintainer: Alexander F Rødseth <xypr...@archlinux.org>
+# Contributor: Vesa Kaihlavirta <v...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=regex-posix
+pkgname=haskell-regex-posix
+pkgver=0.96.0.1
+pkgrel=3
+pkgdesc='POSIX Backend for Text.Regex (regex-base)'
+url="https://hackage.haskell.org/package/$_hkgname";
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-regex-base')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz";)
+sha512sums=('4d6383e34fd6144af3004caee70bc83c8894c8e78c147c2e829cdbd9c74af3d1807604db0927554aea20c69a8b5c1eb3dd01d3963b2e615ee39beaa48095125b')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+    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
+}

Reply via email to