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

Felix Yan felixonmars at gemini.archlinux.org
Tue Jan 11 01:08:23 UTC 2022


    Date: Tuesday, January 11, 2022 @ 01:08:22
  Author: felixonmars
Revision: 1100172

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-conversion-text/repos/community-staging-x86_64/
  haskell-conversion-text/repos/community-staging-x86_64/PKGBUILD
    (from rev 1100171, haskell-conversion-text/trunk/PKGBUILD)

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

Copied: haskell-conversion-text/repos/community-staging-x86_64/PKGBUILD (from rev 1100171, haskell-conversion-text/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-11 01:08:22 UTC (rev 1100172)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=conversion-text
+pkgname=haskell-conversion-text
+pkgver=1.0.1
+pkgrel=20
+pkgdesc="Conversion instances for the text library"
+url="https://github.com/nikita-volkov/conversion-text"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-prelude' 'haskell-conversion' 'haskell-conversion-bytestring')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('9595af8753f469824ade973064d1225d93409e3c59aac2b3e14ee15139e11c3f8abd4dff220254e4eb83c91fb98a9faf5041ad065096caf4f34e4e23a4a7e79e')
+
+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 --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
+}



More information about the arch-commits mailing list