mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
haskell-stm v2.4.3-1 first commit
This commit is contained in:
parent
4c3f361f82
commit
7fbefcc4a1
59
haskell-stm/PKGBUILD
Normal file
59
haskell-stm/PKGBUILD
Normal file
@ -0,0 +1,59 @@
|
||||
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
||||
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
|
||||
# Stephen McIntosh <stephenmac7[at]gmail[dot]com>
|
||||
# Thomas Dziedzic <gostrc@gmail.com>
|
||||
# Vesa Kaihlavirta <vesa@archlinux.org>
|
||||
# Arch Haskell Team <arch-haskell@haskell.org>
|
||||
|
||||
## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ##
|
||||
|
||||
_hkgname=stm
|
||||
pkgname=haskell-stm
|
||||
pkgver=2.4.3
|
||||
pkgrel=1
|
||||
pkgdesc="A modular composable concurrency abstraction."
|
||||
url="http://hackage.haskell.org/package/stm"
|
||||
license=('custom:BSD3')
|
||||
arch=('x86_64')
|
||||
depends=('ghc=7.6.3')
|
||||
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz)
|
||||
install=${pkgname}.install
|
||||
options=('strip' 'staticlibs')
|
||||
md5sums=('aaf57b183a7a4a1bda7df6f00866e709')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_hkgname}-${pkgver}"
|
||||
runhaskell Setup configure \
|
||||
-O \
|
||||
--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}/${_hkgname}-$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"
|
||||
|
||||
# Documentation
|
||||
ln -s "/usr/share/doc/${pkgname}/html" \
|
||||
"${pkgdir}/usr/share/doc/ghc/html/libraries/stm"
|
||||
|
||||
# License
|
||||
install -D -m644 LICENSE \
|
||||
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
||||
rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
|
||||
|
||||
runhaskell Setup copy --destdir="${pkgdir}"
|
||||
}
|
||||
|
58
haskell-stm/README_(for_Packager)
Normal file
58
haskell-stm/README_(for_Packager)
Normal file
@ -0,0 +1,58 @@
|
||||
# # # helpful information # # #
|
||||
|
||||
When you update Haskell packages you'll have to update the entire stack to not break it.
|
||||
|
||||
To help you I wrote a simple guide step-by-step.
|
||||
|
||||
## NOTE: it's possible that some new haskell-package has been added to our repository, so before you update the entire stack you need to check it and then proceed
|
||||
|
||||
|
||||
> First you have to update these packaes:
|
||||
|
||||
haskell-binary
|
||||
haskell-bytestring-show
|
||||
haskell-dataenc
|
||||
haskell-deepseq
|
||||
haskell-extensible-exceptions
|
||||
haskell-html
|
||||
haskell-mmap
|
||||
haskell-primitive
|
||||
haskell-random
|
||||
haskell-syb
|
||||
haskell-stm
|
||||
haskell-terminfo
|
||||
haskell-transformers
|
||||
haskell-mtl
|
||||
haskell-utf8-string
|
||||
haskell-zlib
|
||||
haskell-tar
|
||||
|
||||
> Then update one-by-one the following packages:
|
||||
|
||||
haskell-text
|
||||
|
||||
haskell-parsec
|
||||
|
||||
haskell-network
|
||||
|
||||
haskell-http
|
||||
|
||||
haskell-hslogger
|
||||
|
||||
haskell-vector
|
||||
|
||||
haskell-regex-base
|
||||
|
||||
haskell-regex-posix
|
||||
|
||||
haskell-regex-compat
|
||||
|
||||
haskell-hashed-storage
|
||||
|
||||
haskell-haskeline
|
||||
|
||||
|
||||
> ...lastly you have to update this:
|
||||
|
||||
haskell-cabal-install
|
||||
|
18
haskell-stm/haskell-stm.install
Normal file
18
haskell-stm/haskell-stm.install
Normal file
@ -0,0 +1,18 @@
|
||||
HS_DIR=usr/share/haskell/haskell-stm
|
||||
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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user