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

Felix Yan felixonmars at gemini.archlinux.org
Wed Apr 6 20:19:49 UTC 2022


    Date: Wednesday, April 6, 2022 @ 20:19:49
  Author: felixonmars
Revision: 1181670

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-charset/repos/community-staging-x86_64/
  haskell-charset/repos/community-staging-x86_64/PKGBUILD
    (from rev 1181669, haskell-charset/trunk/PKGBUILD)

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

Copied: haskell-charset/repos/community-staging-x86_64/PKGBUILD (from rev 1181669, haskell-charset/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-06 20:19:49 UTC (rev 1181670)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=charset
+pkgname=haskell-charset
+pkgver=0.3.9
+pkgrel=33
+pkgdesc="A compatibility layer for base"
+url="https://github.com/ekmett/charset"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-unordered-containers')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('3540dfdcd06b1cb7307d27428f51567e6b93638cfc3da82b4c77ca416333e66bc05f96e3b2d70ee48acb13e52634ed6672626ff019316c52e8dd92368d18540c')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$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