desktop/xmonad-contrib/PKGBUILD
2013-09-01 15:56:22 +02:00

59 lines
2.4 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=xmonad-contrib
pkgname=xmonad-contrib
pkgver=0.11.2
pkgrel=1
pkgdesc="Add-ons for xmonad"
url="http://hackage.haskell.org/package/xmonad-contrib"
license=('custom:BSD3')
arch=('x86_64' 'i686')
makedepends=()
depends=('ghc=7.6.3-1' 'haskell-X11>=1.6.1' 'haskell-X11<1.7' 'haskell-base>=3' 'haskell-base<5' 'haskell-containers' 'haskell-directory' 'haskell-extensible-exceptions' 'haskell-mtl>=1' 'haskell-mtl<3' 'haskell-old-locale' 'haskell-old-time' 'haskell-process' 'haskell-random' 'haskell-unix' 'haskell-utf8-string' 'haskell-xmonad>=0.11.0')
options=()
source=("http://hackage.haskell.org/packages/archive/xmonad-contrib/0.11.2/xmonad-contrib-0.11.2.tar.gz")
install="xmonad-contrib.install"
sha512sums=('373e1ed1744cbdf26902402d74b4efafa043a4ccf1953c26ec55a03ef8de31818b0c4cfced08b43e664e5f052e52923c6dfb08d68be86726e9f0ed1d96ad7910')
build() {
cd "${srcdir}/xmonad-contrib-0.11.2"
runhaskell Setup configure \
-O \
${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \
--enable-split-objs \
--enable-shared \
--prefix="/usr" \
--docdir="/usr/share/doc/xmonad-contrib" \
--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}/xmonad-contrib-0.11.2"
install -D -m744 register.sh \
"${pkgdir}/usr/share/haskell/xmonad-contrib/register.sh"
install -m744 unregister.sh \
"${pkgdir}/usr/share/haskell/xmonad-contrib/unregister.sh"
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
# Documentation
ln -s "/usr/share/doc/xmonad-contrib/html" \
"${pkgdir}/usr/share/doc/ghc/html/libraries/xmonad-contrib"
# License
install -D -m644 LICENSE \
"${pkgdir}/usr/share/licenses/xmonad-contrib/LICENSE"
rm -f "${pkgdir}/usr/share/doc/xmonad-contrib/LICENSE"
runhaskell Setup copy --destdir="${pkgdir}"
}