blob: e41baa7ef02698566493478b689bd9fc776d22bf (
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
|
# Maintainer: delitako <delitako at delitako dot xyz>
pkgname=stumpwm-ql
_stumpver=22.05
_qlver=2022_02_20
pkgver="${_stumpver}_${_qlver}"
pkgrel=1
pkgdesc='Stumpwm tiling window manager built with dependencies from quicklisp'
arch=('x86_64')
url='https://stumpwm.github.io'
license=('GPL2')
makedepends=('quicklisp' 'sbcl')
provides=('stumpwm')
conflicts=('stumpwm' 'stumpwm-git')
source=("$pkgname-$_stumpver.tar.gz::https://github.com/stumpwm/stumpwm/archive/refs/tags/$_stumpver.tar.gz"
stumpwm.desktop load-ql-systems.patch)
sha256sums=('d843302f9ce54660bc96e4f0d8e9584f07a81d43c4c26357d5a29cb07194abae'
'bbcf4930a609e7073b1fec9332d1bf314b94ebd8315c227c75f8b818ecdc666d'
'5105db78328aed70e8d071ff02f35d10caa745803df8e71074a444cb7c6afefc')
options=('!strip' '!makeflags')
prepare() {
patch stumpwm-$_stumpver/load-stumpwm.lisp.in load-ql-systems.patch
}
build() {
# Vars
disturl="http://beta.quicklisp.org/dist/quicklisp/${_qlver//_/-}/distinfo.txt"
qlpath=quicklisp
# Clear quicklisp directory if it exists
if [ -d "$qlpath" ]; then
rm -rf "$qlpath"
fi
# Install quicklisp
sbcl --no-sysinit --no-userinit \
--load "/usr/share/quicklisp/quicklisp.lisp" \
--eval "(quicklisp-quickstart:install :dist-url \"${disturl}\" :path \"${qlpath}\")" \
--eval '(ql:quickload "clx")' \
--eval '(ql:quickload "cl-ppcre")' \
--eval '(ql:quickload "alexandria")' \
--quit
# Make
cd stumpwm-$_stumpver
./autogen.sh
./configure --prefix=/usr --with-module-dir=/usr/share/stumpwm/contrib
make
}
package() {
# Install xsession entry
install -Dm644 stumpwm.desktop "$pkgdir/usr/share/xsessions/stumpwm.desktop"
# Everything else
cd stumpwm-$_stumpver
make destdir="$pkgdir" install
install -Dm644 sample-stumpwmrc.lisp "$pkgdir/usr/share/stumpwm/stumpwmrc.example"
}
|