desktop/haskell-hashed-storage/PKGBUILD

59 lines
2.4 KiB
Bash
Raw Normal View History

2013-08-25 23:12:55 +08:00
# Apps Packages for Chakra, part of www.chakra-project.org
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
2013-09-01 21:56:22 +08:00
# Contributors: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
# Thomas Dziedzic <gostrc@gmail.com>
# Vesa Kaihlavirta <vesa@archlinux.org>
# Arch Haskell Team <arch-haskell@haskell.org>
2013-08-25 23:12:55 +08:00
2013-08-25 18:17:20 +08:00
_hkgname=hashed-storage
pkgname=haskell-hashed-storage
pkgver=0.5.10
2013-09-01 21:56:22 +08:00
pkgrel=3
pkgdesc="Hashed file storage support code"
url="http://hackage.haskell.org/package/hashed-storage"
2013-08-25 18:17:20 +08:00
license=('custom:BSD3')
2013-09-01 21:56:22 +08:00
arch=('x86_64' 'i686')
2013-08-25 18:17:20 +08:00
makedepends=()
2013-09-01 21:56:22 +08:00
depends=('ghc=7.6.3-1' 'haskell-base>=4.0' 'haskell-binary' 'haskell-bytestring' 'haskell-containers' 'haskell-dataenc' 'haskell-directory' 'haskell-extensible-exceptions' 'haskell-filepath' 'haskell-mmap>=0.5.0' 'haskell-mtl' 'haskell-zlib')
2013-08-25 18:17:20 +08:00
options=('strip')
2013-09-01 21:56:22 +08:00
source=("http://hackage.haskell.org/packages/archive/hashed-storage/0.5.10/hashed-storage-0.5.10.tar.gz")
install="haskell-hashed-storage.install"
sha512sums=('dfb9cecdfe44e311020ccb79c437d2bb326f18d4022a0386aacd5c23a7c93b6a4f70baa7c2724b796785257a1733407975682fd3b949eda80bee9824df9b7001')
2013-08-25 18:17:20 +08:00
build() {
2013-09-01 21:56:22 +08:00
cd "${srcdir}/hashed-storage-0.5.10"
2013-08-28 14:32:23 +08:00
runhaskell Setup configure \
-O \
${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \
--enable-split-objs \
--enable-shared \
2013-09-01 21:56:22 +08:00
--prefix="/usr" \
--docdir="/usr/share/doc/haskell-hashed-storage" \
--libsubdir='$compiler/site-local/$pkgid'
2013-08-25 18:17:20 +08:00
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
}
2013-09-01 21:56:22 +08:00
2013-08-25 18:17:20 +08:00
package() {
2013-09-01 21:56:22 +08:00
cd "${srcdir}/hashed-storage-0.5.10"
2013-08-28 14:32:23 +08:00
install -D -m744 register.sh \
2013-09-01 21:56:22 +08:00
"${pkgdir}/usr/share/haskell/haskell-hashed-storage/register.sh"
2013-08-28 14:32:23 +08:00
install -m744 unregister.sh \
2013-09-01 21:56:22 +08:00
"${pkgdir}/usr/share/haskell/haskell-hashed-storage/unregister.sh"
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
# Documentation
ln -s "/usr/share/doc/haskell-hashed-storage/html" \
"${pkgdir}/usr/share/doc/ghc/html/libraries/hashed-storage"
2013-08-27 20:53:20 +08:00
# License
2013-08-28 14:32:23 +08:00
install -D -m644 LICENSE \
2013-09-01 21:56:22 +08:00
"${pkgdir}/usr/share/licenses/haskell-hashed-storage/LICENSE"
rm -f "${pkgdir}/usr/share/doc/haskell-hashed-storage/LICENSE"
runhaskell Setup copy --destdir="${pkgdir}"
2013-08-25 18:17:20 +08:00
}