[arch-commits] Commit in haskell-here/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 24 05:09:18 UTC 2017
Date: Sunday, December 24, 2017 @ 05:09:18
Author: felixonmars
Revision: 275620
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-here/repos/community-staging-x86_64/
haskell-here/repos/community-staging-x86_64/PKGBUILD
(from rev 275619, haskell-here/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: haskell-here/repos/community-staging-x86_64/PKGBUILD (from rev 275619, haskell-here/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-24 05:09:18 UTC (rev 275620)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=here
+pkgname=haskell-here
+pkgver=1.2.12
+pkgrel=1
+pkgdesc="Here docs & interpolated strings via quasiquotation"
+url="https://github.com/tmhedberg/here"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-mtl" "haskell-parsec" "haskell-src-meta")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0f1dc6912f7d3f4b309aba3443c365fb97d9a1b01f55f8ae605e55193253f475412f759e9445de1ed310b0817ba09673ee0c7fd3553a1d21e1c8f137d906ede1')
+
+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
+ 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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list