mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-15 23:01:38 +08:00
59 lines
2.3 KiB
Bash
59 lines
2.3 KiB
Bash
# Apps Packages for Chakra, part of www.chakra-project.org
|
|
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
# 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>
|
|
|
|
_hkgname=bytestring-show
|
|
pkgname=haskell-bytestring-show
|
|
pkgver=0.3.5.5
|
|
pkgrel=1
|
|
pkgdesc="Efficient conversion of values into readable byte strings"
|
|
url="http://hackage.haskell.org/package/bytestring-show"
|
|
license=('custom:BSD3')
|
|
arch=('x86_64' 'i686')
|
|
makedepends=()
|
|
depends=('ghc=7.6.3-1' 'haskell-array<0.5' 'haskell-base<5' 'haskell-binary<0.8' 'haskell-bytestring>=0.9' 'haskell-bytestring<=1' 'haskell-containers<0.6')
|
|
options=()
|
|
source=("http://hackage.haskell.org/packages/archive/bytestring-show/0.3.5.5/bytestring-show-0.3.5.5.tar.gz")
|
|
install="haskell-bytestring-show.install"
|
|
sha512sums=('c9634839372a137300cf1f63f9f326ffef77a0f4d5e871aa9db07c4e785deb39c9d7b563cbb9c7399f77b17bfc350ad3dc64700f09ea9c04aca72bdd87abc96d')
|
|
|
|
build() {
|
|
cd "${srcdir}/bytestring-show-0.3.5.5"
|
|
runhaskell Setup configure \
|
|
-O \
|
|
${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \
|
|
--enable-split-objs \
|
|
--enable-shared \
|
|
--prefix="/usr" \
|
|
--docdir="/usr/share/doc/haskell-bytestring-show" \
|
|
--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-0.3.5.5"
|
|
install -D -m744 register.sh \
|
|
"${pkgdir}/usr/share/haskell/haskell-bytestring-show/register.sh"
|
|
install -m744 unregister.sh \
|
|
"${pkgdir}/usr/share/haskell/haskell-bytestring-show/unregister.sh"
|
|
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
|
|
|
|
# Documentation
|
|
ln -s "/usr/share/doc/haskell-bytestring-show/html" \
|
|
"${pkgdir}/usr/share/doc/ghc/html/libraries/bytestring-show"
|
|
|
|
# License
|
|
install -D -m644 LICENSE \
|
|
"${pkgdir}/usr/share/licenses/haskell-bytestring-show/LICENSE"
|
|
rm -f "${pkgdir}/usr/share/doc/haskell-bytestring-show/LICENSE"
|
|
|
|
runhaskell Setup copy --destdir="${pkgdir}"
|
|
}
|