[arch-commits] Commit in haskell-charset/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed May 4 12:52:04 UTC 2022
Date: Wednesday, May 4, 2022 @ 12:52:04
Author: felixonmars
Revision: 1193805
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 1193804, haskell-charset/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-charset/repos/community-staging-x86_64/PKGBUILD (from rev 1193804, haskell-charset/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-05-04 12:52:04 UTC (rev 1193805)
@@ -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=36
+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