From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/xmonad/PKGBUILD | 46 ++++++++++++++++++++++++ community/xmonad/xmonad.desktop | 12 +++++++ community/xmonad/xmonad.install | 22 ++++++++++++ community/xmonad/xmonad.png | Bin 0 -> 2735 bytes community/xmonad/xmonad.svg | 77 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 157 insertions(+) create mode 100644 community/xmonad/PKGBUILD create mode 100644 community/xmonad/xmonad.desktop create mode 100644 community/xmonad/xmonad.install create mode 100644 community/xmonad/xmonad.png create mode 100644 community/xmonad/xmonad.svg (limited to 'community/xmonad') diff --git a/community/xmonad/PKGBUILD b/community/xmonad/PKGBUILD new file mode 100644 index 000000000..63bad6732 --- /dev/null +++ b/community/xmonad/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 41283 2011-03-04 23:20:31Z remy $ +# Maintainer: Sergej Pupykin +# Maintainer: Vesa Kaihlavirta +# Contributor: shild + +pkgname=xmonad +pkgver=0.9.2 +pkgrel=1.2 +pkgdesc="A lightweight X11 tiled window manager written in Haskell" +arch=('i686' 'x86_64') +url="http://xmonad.org/" +license=('BSD') +depends=('ghc=7.0.2' 'gmp' 'haskell-x11=1.5.0.0' 'sh' 'haskell-mtl=2.0.1.0' 'haskell-utf8-string=0.3.6') +install='xmonad.install' +source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz + xmonad.desktop xmonad.svg) +md5sums=('5a4117f798664d772d2a834ea6c90f1c' + 'f61961459f190b6d948f1f2782afa7a7' + '72bfa5e62e4e44fe7fa59b6a7593d993') + +build() { + cd $srcdir/$pkgname-$pkgver + runhaskell Setup.lhs configure --ghc --enable-split-objs --prefix=/usr \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package() { + cd $srcdir/$pkgname-$pkgver + 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 +# runhaskell util/GenerateManpage.hs + + install -D -m644 man/xmonad.1 $pkgdir/usr/share/man/man1/xmonad.1 + + install -D -m644 LICENSE $pkgdir/usr/share/licenses/xmonad/LICENSE + + install -D -m644 $srcdir/xmonad.desktop $pkgdir/usr/share/applications/xmonad.desktop + mkdir -p $pkgdir/etc/X11/sessions + ln -s /usr/share/applications/xmonad.desktop $pkgdir/etc/X11/sessions/xmonad.desktop + install -D -m644 $srcdir/xmonad.svg $pkgdir/usr/share/pixmaps/xmonad.svg +} diff --git a/community/xmonad/xmonad.desktop b/community/xmonad/xmonad.desktop new file mode 100644 index 000000000..a99be19f9 --- /dev/null +++ b/community/xmonad/xmonad.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=xmonad +Icon=/usr/share/pixmaps/xmonad.svg +Comment=This session starts xmonad +Exec=/usr/bin/xmonad +Type=Application +NoDisplay=true +X-GNOME-WMName=Xmonad +X-GNOME-Autostart-Phase=WindowManager +X-GNOME-Provides=windowmanager +X-GNOME-Autostart-Notify=false diff --git a/community/xmonad/xmonad.install b/community/xmonad/xmonad.install new file mode 100644 index 000000000..6659247db --- /dev/null +++ b/community/xmonad/xmonad.install @@ -0,0 +1,22 @@ +HS_DIR=/usr/share/haskell/xmonad + +post_install() { + ${HS_DIR}/register.sh + echo "xmonad now has dynamic configuration via ~/.xmonad/xmonad.hs" + echo "See http://haskell.org/haskellwiki/Xmonad/Config_archive for examples" + echo + echo "If you would like to run xmonad as a window manager inside GNOME, please see" + echo "http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Setting_up_Gnome_to_use_Xmonad" +} + +pre_upgrade() { + ${HS_DIR}/unregister.sh +} + +post_upgrade() { + ${HS_DIR}/register.sh +} + +pre_remove() { + ${HS_DIR}/unregister.sh +} diff --git a/community/xmonad/xmonad.png b/community/xmonad/xmonad.png new file mode 100644 index 000000000..d957f62f8 Binary files /dev/null and b/community/xmonad/xmonad.png differ diff --git a/community/xmonad/xmonad.svg b/community/xmonad/xmonad.svg new file mode 100644 index 000000000..5fc884213 --- /dev/null +++ b/community/xmonad/xmonad.svg @@ -0,0 +1,77 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + -- cgit v1.2.3-54-g00ecf