[arch-commits] Commit in haskell-gi-base/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Mar 22 19:10:40 UTC 2022
Date: Tuesday, March 22, 2022 @ 19:10:40
Author: felixonmars
Revision: 1170467
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-gi-base/repos/community-staging-x86_64/
haskell-gi-base/repos/community-staging-x86_64/PKGBUILD
(from rev 1170466, haskell-gi-base/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-gi-base/repos/community-staging-x86_64/PKGBUILD (from rev 1170466, haskell-gi-base/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-03-22 19:10:40 UTC (rev 1170467)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=haskell-gi-base
+pkgname=haskell-gi-base
+pkgver=0.26.0
+pkgrel=1
+pkgdesc="Foundation for libraries generated by haskell-gi"
+url="https://github.com/haskell-suite/haskell-gi"
+license=("LGPL2")
+arch=('x86_64')
+depends=('ghc-libs' 'glib2')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('fad190109162d57a5174dc2df4ad8d63ea9357cc3d5e619c8d6f0ba3ed5e1fc3d74837608cefed5ec72d5d7511316cce1b574727d54c27c86497d0806f1fe50b')
+
+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 --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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test --show-details=direct
+}
+
+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"
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list