Date: Sunday, August 5, 2018 @ 03:09:45 Author: felixonmars Revision: 368149
addpkg: haskell-panic 0.4.0.1-1 Added: haskell-panic/ haskell-panic/repos/ haskell-panic/trunk/ haskell-panic/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: haskell-panic/trunk/PKGBUILD =================================================================== --- haskell-panic/trunk/PKGBUILD (rev 0) +++ haskell-panic/trunk/PKGBUILD 2018-08-05 03:09:45 UTC (rev 368149) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=panic +pkgname=haskell-panic +pkgver=0.4.0.1 +pkgrel=1 +pkgdesc="A convenient way to panic" +url="https://github.com/yav/panic" +license=('ISC') +arch=('x86_64') +depends=('ghc-libs' 'haskell-gitrev') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('7df11c15414c1513f86a236b1bb549c5cf8795e9f5120580ce5e05b2bd423914df33db79b901835987adb9726d9f24bbc8590cfb4a0a6cb2a905e667e0a4e9da') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + 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 $_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-panic/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property