Date: Wednesday, November 29, 2017 @ 13:37:38 Author: felixonmars Revision: 270685
addpkg: haskell-shelly 1.6.8.7-1 Added: haskell-shelly/ haskell-shelly/repos/ haskell-shelly/trunk/ haskell-shelly/trunk/PKGBUILD ----------+ PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) Added: haskell-shelly/trunk/PKGBUILD =================================================================== --- haskell-shelly/trunk/PKGBUILD (rev 0) +++ haskell-shelly/trunk/PKGBUILD 2017-11-29 13:37:38 UTC (rev 270685) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=shelly +pkgname=haskell-shelly +pkgver=1.6.8.7 +pkgrel=1 +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=('425571a43c25b72fe3cf36bf64075926faf0669031a82704b3b0a57a96910d0ec9dd11608bfa2355af657eb46227c03b8d176e4a4aea08cb70257641b693a366') + +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" +} Property changes on: haskell-shelly/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property