1 # Maintainer: Kyle Keen <keenerd@gmail.com>
5 pkgdesc="A minimalistic dynamic tiling window manager that tries to stay out of the way."
7 url="http://www.scrotwm.org"
9 depends=('dmenu' 'libxrandr' 'libxtst' 'profont')
10 backup=(etc/scrotwm.conf)
14 optdepends=('scrot: screenshots' 'xlockmore: screenlocking' 'terminus-font: great font')
18 #options=('makeflags')
21 #_cvsroot="anoncvs@anoncvs.freedaemon.com:/scrotwm"
22 #_cvsroot="anoncvs@opensource.conformal.com:/anoncvs/scrotwm"
25 _gitroot="git://opensource.conformal.com/scrotwm.git"
30 msg "Connecting to conformal.com..."
32 if [ -d ${srcdir}/${_gitname} ] ; then
33 cd ${_gitname} && git pull origin
34 msg "The local files are updated."
36 git clone --depth 1 ${_gitroot}
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
42 cd "$srcdir/$_gitname"
44 #cp -f ../../Makefile .
46 # it is like a patch, only less fragile
47 #sed -i 's|setenv(\"LD_PRELOAD\", SWM_LIB, 1);|//setenv(\"LD_PRELOAD\", SWM_LIB, 1);|' "$srcdir/scrotwm/scrotwm.c"
48 sed -i 's|\"/usr/local/lib/libswmhack.so\"|\"libswmhack.so\"|' "$srcdir/scrotwm/scrotwm.c"
49 sed -i 's/# modkey = Mod1/modkey = Mod4/' "$srcdir/scrotwm/scrotwm.conf"
50 sed -i 's/-\*-terminus-medium-\*-\*-\*-\*-\*-\*-\*-\*-\*-\*-\*/-*-profont-*-*-*-*-12-*-*-*-*-*-*-*/' "$srcdir/scrotwm/scrotwm.conf"
53 ln -s ../version.h version.h
58 cd "$srcdir/$_gitname/linux"
59 make PREFIX="/usr" DESTDIR="$pkgdir" install
60 install -Dm644 scrotwm.desktop "$pkgdir/usr/share/xsessions/scrotwm.desktop"
62 install -Dm644 scrotwm.conf "$pkgdir/etc/scrotwm.conf"
63 install -Dm755 screenshot.sh "$pkgdir/usr/share/scrotwm/screenshot.sh"
65 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
66 install -Dm755 baraction.sh "$pkgdir/usr/share/scrotwm/baraction.sh"
68 ln -s /usr/lib/libswmhack.so.0.0 "$pkgdir/usr/lib/libswmhack.so.0"
69 ln -s /usr/lib/libswmhack.so.0.0 "$pkgdir/usr/lib/libswmhack.so"