[arch-commits] Commit in haskell-shake/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 28 16:41:50 UTC 2017
Date: Thursday, December 28, 2017 @ 16:41:49
Author: felixonmars
Revision: 276545
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-shake/repos/community-staging-x86_64/
haskell-shake/repos/community-staging-x86_64/PKGBUILD
(from rev 276544, haskell-shake/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: haskell-shake/repos/community-staging-x86_64/PKGBUILD (from rev 276544, haskell-shake/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-28 16:41:49 UTC (rev 276545)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=shake
+pkgname=haskell-shake
+pkgver=0.16
+pkgrel=5
+pkgdesc="Build system library, like Make, but more accurate dependencies."
+url="http://shakebuild.com"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-extra' 'haskell-hashable' 'haskell-js-flot' 'haskell-js-jquery'
+ 'haskell-primitive' 'haskell-random' 'haskell-unordered-containers' 'haskell-utf8-string')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0e34cc3a9551e3da099a0c81a1982dc70a808c03db1b7a05d053f5f1159627b17b28c78c290e9fd0949da02f87ee987937e623ebcdc335cd65442518bd33f5f0')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-portable
+ 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