[arch-commits] Commit in haskell-shelly/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Dec 12 07:51:07 UTC 2017
Date: Tuesday, December 12, 2017 @ 07:51:06
Author: felixonmars
Revision: 273940
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-shelly/repos/community-staging-x86_64/
haskell-shelly/repos/community-staging-x86_64/PKGBUILD
(from rev 273939, haskell-shelly/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: haskell-shelly/repos/community-staging-x86_64/PKGBUILD (from rev 273939, haskell-shelly/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-12 07:51:06 UTC (rev 273940)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=shelly
+pkgname=haskell-shelly
+pkgver=1.6.9
+pkgrel=2
+pkgdesc="Shell-like (systems) programming in Haskell"
+url="https://github.com/yesodweb/Shelly.hs"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-mtl' 'haskell-unix-compat' 'haskell-system-filepath'
+ 'haskell-system-fileio' 'haskell-monad-control' 'haskell-lifted-base'
+ 'haskell-lifted-async' 'haskell-exceptions' 'haskell-enclosed-exceptions' 'haskell-text'
+ 'haskell-async' 'haskell-transformers-base')
+makedepends=('ghc' 'haskell-hunit' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('1fd4912ebfe3f1a0e1968b0ac00b6baec2cc335d111c11a48889b41bafd67ef9c27a6405357ad6101e598f8a897a5869500ac596dc7197c19418011d96b0e1a3')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ mkdir test/data/{dir,symlinked_dir}
+ ln -s ../symlinked_dir test/data/dir/
+ touch test/data/symlinked_dir/hoge_file
+}
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-lifted -f-build-examples
+ 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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+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