Date: Tuesday, January 10, 2017 @ 06:26:45 Author: felixonmars Revision: 206473
addpkg: haskell-turtle1.2 1.2.8-1 Added: haskell-turtle1.2/ haskell-turtle1.2/repos/ haskell-turtle1.2/trunk/ haskell-turtle1.2/trunk/PKGBUILD ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Added: haskell-turtle1.2/trunk/PKGBUILD =================================================================== --- haskell-turtle1.2/trunk/PKGBUILD (rev 0) +++ haskell-turtle1.2/trunk/PKGBUILD 2017-01-10 06:26:45 UTC (rev 206473) @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Thomas Dziedzic <[email protected]> + +_hkgname=turtle +pkgname=haskell-turtle1.2 +pkgver=1.2.8 +pkgrel=1 +pkgdesc="Shell programming, Haskell-style (legacy 1.2 version)" +url="https://github.com/Gabriel439/Haskell-Turtle-Library" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=8.0.1' 'haskell-async' 'haskell-clock' 'haskell-foldl' 'haskell-hostname' + 'haskell-managed' 'haskell-optparse-applicative' 'haskell-optional-args' 'haskell-stm' + 'haskell-system-fileio' 'haskell-system-filepath' 'haskell-temporary' 'haskell-text') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +md5sums=('866891520c0d9ecdbb6d594323485b39') + +prepare() { + sed -e 's/optparse-applicative >= 0.11 && < 0.13,/optparse-applicative >= 0.11 \&\& < 0.14,/' \ + -i ${_hkgname}-${pkgver}/${_hkgname}.cabal +} + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-library-profiling --enable-shared \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + 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" + install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}1.2" + 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-turtle1.2/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
