mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
haskell-text update to 1.0.0.0
This commit is contained in:
parent
fdb4d0169c
commit
2f2699f5fa
@ -1,35 +1,58 @@
|
|||||||
# Maintainer: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
|
# 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=text
|
_hkgname=text
|
||||||
pkgname=haskell-text
|
pkgname=haskell-text
|
||||||
pkgver=0.11.2.3
|
pkgver=1.0.0.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="An efficient packed Unicode text type."
|
pkgdesc="An efficient packed Unicode text type"
|
||||||
url="http://hackage.haskell.org/package/${_hkgname}"
|
url="http://hackage.haskell.org/package/text"
|
||||||
license=('custom:BSD3')
|
license=('custom:BSD3')
|
||||||
arch=('i686' 'x86_64')
|
arch=('x86_64')
|
||||||
makedepends=()
|
makedepends=()
|
||||||
depends=('ghc' 'haskell-deepseq')
|
depends=('ghc=7.6.3-1' 'haskell-array' 'haskell-base>=4.0' 'haskell-bytestring>=0.9' 'haskell-deepseq>=1.1.0.0' 'haskell-ghc-prim')
|
||||||
options=('strip')
|
options=('strip')
|
||||||
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
|
source=("http://hackage.haskell.org/packages/archive/text/${pkgver}/text-${pkgver}.tar.gz")
|
||||||
install=${pkgname}.install
|
install="haskell-text.install"
|
||||||
md5sums=('7a469d49a7576fb3a18785cb64d4ee6c')
|
sha512sums=('9f6bf41e65c08840dffc1c1cd7d3c70a6dc6c7b6f3accce20f9c4b724c3b70cf79f5e14aba930a39347be4a89e4a29b0fdb004d2349c7fa210b5daddd84d74b5')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/${_hkgname}-${pkgver}
|
cd "${srcdir}/text-${pkgver}"
|
||||||
runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \
|
runhaskell Setup configure \
|
||||||
--prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
|
-O \
|
||||||
|
${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \
|
||||||
|
--enable-split-objs \
|
||||||
|
--enable-shared \
|
||||||
|
--prefix="/usr" \
|
||||||
|
--docdir="/usr/share/doc/haskell-text" \
|
||||||
|
--libsubdir='$compiler/site-local/$pkgid'
|
||||||
runhaskell Setup build
|
runhaskell Setup build
|
||||||
runhaskell Setup haddock
|
runhaskell Setup haddock
|
||||||
runhaskell Setup register --gen-script
|
runhaskell Setup register --gen-script
|
||||||
runhaskell Setup unregister --gen-script
|
runhaskell Setup unregister --gen-script
|
||||||
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
|
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${srcdir}/${_hkgname}-${pkgver}
|
cd "${srcdir}/text-${pkgver}"
|
||||||
install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
|
install -D -m744 register.sh \
|
||||||
install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
|
"${pkgdir}/usr/share/haskell/haskell-text/register.sh"
|
||||||
install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
|
install -m744 unregister.sh \
|
||||||
ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
|
"${pkgdir}/usr/share/haskell/haskell-text/unregister.sh"
|
||||||
runhaskell Setup copy --destdir=${pkgdir}
|
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
|
||||||
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
||||||
rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
|
# Documentation
|
||||||
|
ln -s "/usr/share/doc/haskell-text/html" \
|
||||||
|
"${pkgdir}/usr/share/doc/ghc/html/libraries/text"
|
||||||
|
|
||||||
|
# License
|
||||||
|
install -D -m644 LICENSE \
|
||||||
|
"${pkgdir}/usr/share/licenses/haskell-text/LICENSE"
|
||||||
|
rm -f "${pkgdir}/usr/share/doc/haskell-text/LICENSE"
|
||||||
|
|
||||||
|
runhaskell Setup copy --destdir="${pkgdir}"
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,27 @@
|
|||||||
HS_DIR=usr/share/haskell/haskell-text
|
HS_DIR=usr/share/haskell/haskell-text
|
||||||
|
|
||||||
|
#pre_install() {
|
||||||
|
# echo "insert pre_install routine here"
|
||||||
|
#}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
${HS_DIR}/register.sh
|
${HS_DIR}/register.sh
|
||||||
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_upgrade() {
|
pre_upgrade() {
|
||||||
${HS_DIR}/unregister.sh
|
${HS_DIR}/unregister.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
${HS_DIR}/register.sh
|
${HS_DIR}/register.sh
|
||||||
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_remove() {
|
pre_remove() {
|
||||||
${HS_DIR}/unregister.sh
|
${HS_DIR}/unregister.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
post_remove() {
|
post_remove() {
|
||||||
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user