mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
|
|
# Contributor: orbisvicis <gmail.com>
|
|
pkgname=xmonad-contrib
|
|
pkgver=0.8.1
|
|
pkgrel=2
|
|
pkgdesc="Add-ons for xmonad"
|
|
arch=('i686' 'x86_64')
|
|
url="http://xmonad.org/"
|
|
license=('BSD')
|
|
depends=('xmonad=0.8.1' 'sh' 'haskell-x11-xft>=0.2' 'haskell-utf8-string')
|
|
makedepends=('ghc' 'haskell-x11')
|
|
install='xmonad-contrib.install'
|
|
source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
|
|
source=(http://code.haskell.org/~sjanssen/$pkgname-$pkgver.tar.gz)
|
|
md5sums=('03f74fda270aca759407787da73e50d9')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
runhaskell Setup.lhs configure --ghc --prefix=/usr --flags="with_xft use_utf8" \
|
|
--libsubdir=\$compiler/site-local/\$pkgid || return 1
|
|
|
|
runhaskell Setup.lhs build || return 1
|
|
|
|
runhaskell Setup.lhs register --gen-script
|
|
runhaskell Setup.lhs unregister --gen-script
|
|
|
|
install -D -m744 register.sh $pkgdir/usr/share/haskell/$pkgname/register.sh
|
|
install -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh
|
|
|
|
runhaskell Setup.lhs copy --destdir=$pkgdir
|
|
install -D LICENSE $pkgdir/usr/share/licenses/xmonad-contrib/LICENSE
|
|
}
|