[arch-commits] Commit in stylish-haskell/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 7 12:14:12 UTC 2017
Date: Thursday, December 7, 2017 @ 12:14:10
Author: felixonmars
Revision: 272977
archrelease: copy trunk to community-staging-x86_64
Added:
stylish-haskell/repos/community-staging-x86_64/
stylish-haskell/repos/community-staging-x86_64/PKGBUILD
(from rev 272975, stylish-haskell/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: stylish-haskell/repos/community-staging-x86_64/PKGBUILD (from rev 272975, stylish-haskell/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-07 12:14:10 UTC (rev 272977)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=stylish-haskell
+pkgver=0.8.1.0
+pkgrel=26
+pkgdesc="Haskell code prettifier"
+url="https://github.com/jaspervdj/stylish-haskell"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-aeson" "haskell-src-exts" "haskell-mtl" "haskell-optparse-applicative"
+ "haskell-strict" "haskell-syb" "haskell-yaml")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('617b4a089b66a895b49f7ecb205d91f4736843b95b393460e08b3276410f8f994e613b135c4c2dec69323d1b333061165db8878baf33c9dd2131dbeb59a25366')
+
+build() {
+ cd "${srcdir}/${pkgname}-${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-old_base
+ 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}/${pkgname}-${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