summaryrefslogtreecommitdiff
path: root/community/spectrwm/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/spectrwm/PKGBUILD')
-rw-r--r--community/spectrwm/PKGBUILD62
1 files changed, 0 insertions, 62 deletions
diff --git a/community/spectrwm/PKGBUILD b/community/spectrwm/PKGBUILD
deleted file mode 100644
index 443fbdee3..000000000
--- a/community/spectrwm/PKGBUILD
+++ /dev/null
@@ -1,62 +0,0 @@
-# $Id: PKGBUILD 75631 2012-08-27 17:30:40Z kkeen $
-# Maintainer: Kyle Keen <keenerd@gmail.com>
-# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
-
-pkgname=spectrwm
-pkgver=2.0.2
-pkgrel=1
-pkgdesc="A minimalistic automatic tiling window manager that tries to stay out of the way."
-arch=('i686' 'x86_64')
-url="http://www.spectrwm.org"
-_watch="https://opensource.conformal.com/snapshots/spectrwm/"
-license=('custom:ISC')
-depends=('dmenu' 'xcb-util' 'xcb-util-wm' 'xcb-util-keysyms' 'libxrandr' 'libxft' 'libxcursor' 'profont')
-replaces=('scrotwm')
-makedepends=('libxt')
-optdepends=('scrot: screenshots' 'xlockmore: screenlocking' 'terminus-font: great font')
-backup=(etc/spectrwm.conf)
-source=(http://opensource.conformal.com/snapshots/$pkgname/$pkgname-$pkgver.tgz \
- LICENSE \
- baraction.sh)
-md5sums=('b7c52886492690eb1b71aa673743d044'
- 'a67cfe51079481e5b0eab1ad371379e3'
- '950d663692e1da56e0ac864c6c3ed80e')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- # it is like a patch, only less fragile
- sed -i 's|\"/usr/local/lib/libswmhack.so\"|\"libswmhack.so\"|' spectrwm.c
- sed -i 's/verbose_layout = 0;/verbose_layout = 1;/' spectrwm.c
- sed -i 's/# modkey = Mod1/modkey = Mod4/' spectrwm.conf
- sed -i 's/-\*-terminus-medium-\*-\*-\*-\*/-*-profont-*-*-*-*-12/' spectrwm.conf
-
- cd linux
- make PREFIX="/usr"
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver/linux"
- make PREFIX="/usr" DESTDIR="$pkgdir" install
- install -Dm644 spectrwm.desktop "$pkgdir/usr/share/xsessions/spectrwm.desktop"
- cd ..
- install -Dm644 spectrwm.conf "$pkgdir/etc/spectrwm.conf"
- install -Dm755 screenshot.sh "$pkgdir/usr/share/spectrwm/screenshot.sh"
- mkdir -p "$pkgdir/etc/spectrwm"
- cp spectrwm_*.conf "$pkgdir/etc/spectrwm/"
- cd "$srcdir"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -Dm755 baraction.sh "$pkgdir/usr/share/spectrwm/baraction.sh"
-
- ln -s /usr/lib/libswmhack.so.0.0 "$pkgdir/usr/lib/libswmhack.so.0"
- ln -s /usr/lib/libswmhack.so.0.0 "$pkgdir/usr/lib/libswmhack.so"
-
- # fix this for real in the makefile
- rm "$pkgdir/usr/bin/scrotwm"
- ln -s "/usr/bin/spectrwm" "$pkgdir/usr/bin/scrotwm"
- mkdir -p "$pkgdir"/usr/share/man/{es,it,pt,ru}/man1/
- mv "$pkgdir/usr/share/man/man1/spectrwm_es.1" "$pkgdir/usr/share/man/es/man1/"
- mv "$pkgdir/usr/share/man/man1/spectrwm_it.1" "$pkgdir/usr/share/man/it/man1/"
- mv "$pkgdir/usr/share/man/man1/spectrwm_pt.1" "$pkgdir/usr/share/man/pt/man1/"
- mv "$pkgdir/usr/share/man/man1/spectrwm_ru.1" "$pkgdir/usr/share/man/ru/man1/"
-}