[arch-commits] Commit in haskell-src-exts/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue May 11 19:50:43 UTC 2021
Date: Tuesday, May 11, 2021 @ 19:50:43
Author: felixonmars
Revision: 930585
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-src-exts/repos/community-staging-x86_64/
haskell-src-exts/repos/community-staging-x86_64/PKGBUILD
(from rev 930584, haskell-src-exts/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: haskell-src-exts/repos/community-staging-x86_64/PKGBUILD (from rev 930584, haskell-src-exts/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-05-11 19:50:43 UTC (rev 930585)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=haskell-src-exts
+pkgname=haskell-src-exts
+pkgver=1.23.1
+pkgrel=85
+pkgdesc="Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer"
+url="https://github.com/haskell-suite/haskell-src-exts"
+license=("custom:BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'happy' 'haskell-pretty-show' 'haskell-smallcheck' 'haskell-tasty'
+ 'haskell-tasty-golden' 'haskell-tasty-smallcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('c9e6e4d93c2b4ee84d57707aed526291b5c4e297f06a3921257feb0c1df3bb095addd4b1d9bb187650490364647385ab6322e4fc54f9a7648da439a34329d734')
+
+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
+ 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
+ # https://github.com/haskell-suite/haskell-src-exts/issues/448
+ runhaskell Setup test || :
+}
+
+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