Date: Thursday, May 26, 2016 @ 05:12:35 Author: fyan Revision: 177083
addpkg: haskell-system-filepath 0.4.13.4-1 Added: haskell-system-filepath/ haskell-system-filepath/repos/ haskell-system-filepath/trunk/ haskell-system-filepath/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Added: haskell-system-filepath/trunk/PKGBUILD =================================================================== --- haskell-system-filepath/trunk/PKGBUILD (rev 0) +++ haskell-system-filepath/trunk/PKGBUILD 2016-05-26 03:12:35 UTC (rev 177083) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=system-filepath +pkgname=haskell-system-filepath +pkgver=0.4.13.4 +pkgrel=1 +pkgdesc="High-level, byte-based file and directory path manipulations" +url="http://hackage.haskell.org/package/${_hkgname}" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=("ghc=8.0.1" "haskell-text") +source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha256sums=('345d7dec968b74ab1b8c0e7bb78c2ef1e5be7be6b7bac455340fd658abfec5fb') + +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}" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt" +} Property changes on: haskell-system-filepath/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property