[arch-commits] Commit in haskell-parser-combinators/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Nov 26 07:28:19 UTC 2017
Date: Sunday, November 26, 2017 @ 07:28:18
Author: felixonmars
Revision: 268762
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-parser-combinators/repos/community-staging-x86_64/
haskell-parser-combinators/repos/community-staging-x86_64/PKGBUILD
(from rev 268761, haskell-parser-combinators/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: haskell-parser-combinators/repos/community-staging-x86_64/PKGBUILD (from rev 268761, haskell-parser-combinators/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-11-26 07:28:18 UTC (rev 268762)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=parser-combinators
+pkgname=haskell-parser-combinators
+pkgver=0.2.0
+pkgrel=3
+pkgdesc="Lightweight package providing commonly useful parser combinators"
+url="https://github.com/mrkkrp/parser-combinators"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('37287833048ed408920cd72b362667d3ba976a302d5340dd859f0e2cba0edabb2ed7228f838356b31f1e1f9fd65fe2c707e4cc4c7ab217b3e912e630c9124030')
+
+build() {
+ cd "${srcdir}/${_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 \
+ -f-dev
+ runhaskell Setup build
+ 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 "${srcdir}/${_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