Date: Saturday, February 20, 2016 @ 18:29:53 Author: fyan Revision: 162860
addpkg: haskell-hpack 0.9.0-1 Added: haskell-hpack/ haskell-hpack/repos/ haskell-hpack/trunk/ haskell-hpack/trunk/PKGBUILD haskell-hpack/trunk/haskell-hpack.install -----------------------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ haskell-hpack.install | 23 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) Added: haskell-hpack/trunk/PKGBUILD =================================================================== --- haskell-hpack/trunk/PKGBUILD (rev 0) +++ haskell-hpack/trunk/PKGBUILD 2016-02-20 17:29:53 UTC (rev 162860) @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Nagy <danielnagy at gmx de> +# Contributor: Daniel Micay <danielmi...@gmail.com> + +pkgname=haskell-hpack +_hkgname=hpack +pkgver=0.9.0 +pkgrel=1 +pkgdesc="An alternative format for Haskell packages" +url="https://github.com/sol/hpack#readme" +license=("MIT") +arch=('i686' 'x86_64') +makedepends=('ghc') +depends=("ghc=7.10.3" 'haskell-aeson' 'haskell-base-compat' 'haskell-glob' 'haskell-text' + 'haskell-unordered-containers' 'haskell-yaml') +source=("http://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-${pkgver}.tar.gz") +options=('staticlibs') +install=$pkgname.install +md5sums=('9578166fea8804b7e8305a8c32677858') + +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 + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package() { + cd "$srcdir/$_hkgname-$pkgver" + install -Dm744 register.sh "$pkgdir/usr/share/haskell/$pkgname/register.sh" + install -m744 unregister.sh "$pkgdir/usr/share/haskell/$pkgname/unregister.sh" + install -dm755 "$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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "$pkgdir/usr/share/doc/$pkgname/LICENSE" +} Property changes on: haskell-hpack/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: haskell-hpack/trunk/haskell-hpack.install =================================================================== --- haskell-hpack/trunk/haskell-hpack.install (rev 0) +++ haskell-hpack/trunk/haskell-hpack.install 2016-02-20 17:29:53 UTC (rev 162860) @@ -0,0 +1,23 @@ +HS_DIR=usr/share/haskell/haskell-hpack + +post_install() { + $HS_DIR/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} + +pre_upgrade() { + $HS_DIR/unregister.sh +} + +post_upgrade() { + $HS_DIR/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} + +pre_remove() { + $HS_DIR/unregister.sh +} + +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +}