blob: 2d199150ba87d139b83b6c283f18d7095380babd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $Id: PKGBUILD 174403 2016-05-09 03:53:49Z kkeen $
# Maintainer (Arch): Kyle Keen <keenerd@gmail.com>
# Contributor (Arch): Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
pkgname=spectrwm
pkgver=3.0.1
_ghver=3_0_1
pkgrel=1.parabola1
pkgdesc="A minimalistic automatic tiling window manager that tries to stay out of the way, without nonfree profont support"
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')
replaces=('scrotwm' 'spectrwm-libre' 'spectrwm-parabola')
conflicts=('spectrwm-libre' 'spectrwm-parabola')
makedepends=('libxt')
optdepends=('scrot: screenshots'
'xlockmore: great screenlocker'
'terminus-font: great font')
backup=(etc/spectrwm.conf)
#source=(http://opensource.conformal.com/snapshots/$pkgname/$pkgname-$pkgver.tgz \
source=("https://github.com/conformal/spectrwm/archive/SPECTRWM_${_ghver}.tar.gz" \
LICENSE \
baraction.sh \
spectrwm-no-preload)
md5sums=('4df6713ad2bea95431e07317573baf0f'
'a67cfe51079481e5b0eab1ad371379e3'
'950d663692e1da56e0ac864c6c3ed80e'
'974d109ce0af39cc73936d5efd682480')
build() {
#cd "$srcdir/$pkgname-$pkgver"
cd "$srcdir/$pkgname-SPECTRWM_$_ghver"
sed -i 's|\"/usr/local/lib/libswmhack.so\"|\"libswmhack.so\"|' spectrwm.c
sed -i 's/verbose_layout = false;/verbose_layout = true;/' spectrwm.c
sed -i 's/# modkey = Mod1/modkey = Mod4/' spectrwm.conf
# crashes if defaults can't be found, use less massive defaults
sed -i 's/-\*-terminus-medium-\*-\*-\*-\*/-*-profont-*-*-*-*-12/' spectrwm.conf
#sed -i 's/# program[lock].*/program[lock] = slock/' spectrwm.conf
# see spectrwm FS#403
sed -i 's/setconfspawn("lock".*/setconfspawn("lock", "xlock", SWM_SPAWN_OPTIONAL);/' spectrwm.c
cd linux
make PREFIX="/usr"
}
package() {
#cd "$srcdir/$pkgname-$pkgver"
cd "$srcdir/$pkgname-SPECTRWM_$_ghver"
cd 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"
install -Dm755 spectrwm-no-preload "$pkgdir/usr/bin/spectrwm-no-preload"
#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"
}
|