diff options
author | root <root@rshg054.dnsready.net> | 2012-09-13 00:04:38 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-13 00:04:38 +0000 |
commit | 843685ce9dd76d37a4c7b0230eacb6d26bdf30dd (patch) | |
tree | 9151f782b8f347cf28e0f398341441d659f41f4a /community-staging/haskell-bytestring-show | |
parent | 21c375ba65c4730e25cd0b135aff7811bf28c77a (diff) |
Thu Sep 13 00:04:37 UTC 2012
Diffstat (limited to 'community-staging/haskell-bytestring-show')
-rw-r--r-- | community-staging/haskell-bytestring-show/PKGBUILD | 41 | ||||
-rw-r--r-- | community-staging/haskell-bytestring-show/haskell-bytestring-show.install | 24 |
2 files changed, 65 insertions, 0 deletions
diff --git a/community-staging/haskell-bytestring-show/PKGBUILD b/community-staging/haskell-bytestring-show/PKGBUILD new file mode 100644 index 000000000..3b45dcd16 --- /dev/null +++ b/community-staging/haskell-bytestring-show/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 76081 2012-09-11 04:59:02Z tdziedzic $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=haskell-bytestring-show +pkgver=0.3.5.3 +pkgrel=1 +pkgdesc="Efficient conversion of values into readable byte strings." +url="http://hackage.haskell.org/package/bytestring-show" +license=("BSD3") +arch=('i686' 'x86_64') +depends=("ghc=7.6.1-1") +install="${pkgname}.install" +source=("http://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz") +md5sums=('cbcc94f57fc754685f428aba003ba058') + +build() { + cd ${srcdir}/bytestring-show-${pkgver} + + # update outdated dependency + sed 's/build-depends: integer-gmp >= 0.2 && < 0.5/build-depends: integer-gmp >= 0.2 \&\& < 0.6/' -i bytestring-show.cabal + + runhaskell Setup configure -O -p --enable-split-objs --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}/bytestring-show-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.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/bytestring-show + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/community-staging/haskell-bytestring-show/haskell-bytestring-show.install b/community-staging/haskell-bytestring-show/haskell-bytestring-show.install new file mode 100644 index 000000000..335fc37cd --- /dev/null +++ b/community-staging/haskell-bytestring-show/haskell-bytestring-show.install @@ -0,0 +1,24 @@ +pkgname=haskell-bytestring-show +HS_DIR=usr/share/haskell/${pkgname} + +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) +} |