mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-15 22:50:24 +08:00
59 lines
2.2 KiB
Bash
59 lines
2.2 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=regex-posix
|
|
pkgname=haskell-regex-posix
|
|
pkgver=0.95.2
|
|
pkgrel=4
|
|
pkgdesc="Replaces/Enhances Text.Regex"
|
|
url="http://hackage.haskell.org/package/regex-posix"
|
|
license=('custom:BSD3')
|
|
arch=('x86_64' 'i686')
|
|
makedepends=()
|
|
depends=('ghc=7.6.3-1' 'haskell-array' 'haskell-base>=3.0' 'haskell-bytestring' 'haskell-containers' 'haskell-regex-base>=0.93')
|
|
options=('strip')
|
|
source=("http://hackage.haskell.org/packages/archive/regex-posix/0.95.2/regex-posix-0.95.2.tar.gz")
|
|
install="haskell-regex-posix.install"
|
|
sha512sums=('2d22951f0302de144483d2c11d0711dc2cbd2fc6a0eac0126011eaa6f577837ae8c2a9516badb4beed6c18311241458dd6ad9f82a11d6f3763891880ebbc8c41')
|
|
|
|
build() {
|
|
cd "${srcdir}/regex-posix-0.95.2"
|
|
runhaskell Setup configure \
|
|
-O \
|
|
${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \
|
|
--enable-split-objs \
|
|
--enable-shared \
|
|
--prefix="/usr" \
|
|
--docdir="/usr/share/doc/haskell-regex-posix" \
|
|
--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}/regex-posix-0.95.2"
|
|
install -D -m744 register.sh \
|
|
"${pkgdir}/usr/share/haskell/haskell-regex-posix/register.sh"
|
|
install -m744 unregister.sh \
|
|
"${pkgdir}/usr/share/haskell/haskell-regex-posix/unregister.sh"
|
|
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
|
|
|
|
# Documentation
|
|
ln -s "/usr/share/doc/haskell-regex-posix/html" \
|
|
"${pkgdir}/usr/share/doc/ghc/html/libraries/regex-posix"
|
|
|
|
# License
|
|
install -D -m644 LICENSE \
|
|
"${pkgdir}/usr/share/licenses/haskell-regex-posix/LICENSE"
|
|
rm -f "${pkgdir}/usr/share/doc/haskell-regex-posix/LICENSE"
|
|
|
|
runhaskell Setup copy --destdir="${pkgdir}"
|
|
}
|