[arch-commits] Commit in haskell-regex-applicative/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Dec 20 18:29:52 UTC 2021
Date: Monday, December 20, 2021 @ 18:29:51
Author: felixonmars
Revision: 1080597
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-regex-applicative/repos/community-staging-x86_64/
haskell-regex-applicative/repos/community-staging-x86_64/PKGBUILD
(from rev 1080596, haskell-regex-applicative/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-regex-applicative/repos/community-staging-x86_64/PKGBUILD (from rev 1080596, haskell-regex-applicative/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-20 18:29:51 UTC (rev 1080597)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=regex-applicative
+pkgname=haskell-regex-applicative
+pkgver=0.3.4
+pkgrel=110
+pkgdesc="Regex-based parsing with applicative interface"
+url="https://github.com/feuerbach/regex-applicative"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-filtrable')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('84f32da62b336c7e8bd67ebfffdf0f13f98a39434efa5dd32d389a5db1fdaaeece462ecec7bc5d3c5b49e82acd7c4c4b0d8a5c552bb275c16c254bd3f5336470')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$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