[arch-commits] Commit in haskell-megaparsec/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Dec 20 19:57:23 UTC 2021
Date: Monday, December 20, 2021 @ 19:57:23
Author: felixonmars
Revision: 1080698
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-megaparsec/repos/community-staging-x86_64/
haskell-megaparsec/repos/community-staging-x86_64/PKGBUILD
(from rev 1080697, haskell-megaparsec/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: haskell-megaparsec/repos/community-staging-x86_64/PKGBUILD (from rev 1080697, haskell-megaparsec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-20 19:57:23 UTC (rev 1080698)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=megaparsec
+pkgname=haskell-megaparsec
+pkgver=9.2.0
+pkgrel=10
+pkgdesc="Monadic parser combinators"
+url="https://github.com/mrkkrp/megaparsec"
+license=("custom:BSD2")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-case-insensitive' 'haskell-parser-combinators'
+ 'haskell-scientific')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('9536c4a619c8a310fa1a360bd70179c54113bc0b66d55f0698d89589b527c8e8ed2a818a13b50fc0ad8f3b8210f1a9f6442e3403f24936cb827b14336cb074fe')
+
+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 --ghc-option=-fllvm \
+ -f-dev
+ 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.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.md
+}
More information about the arch-commits
mailing list