blob: 36f09b0d56d0caa950e629dc85afd48303667da4 (
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
|
# Maintainer: Lex Childs <lexchilds@gmail.com>
# Maintainer: hertg <aur@her.tg>
# Contributor: éclairevoyant
# Contributor: mautam <mautam@usa.com>
pkgbase=leftwm-git
pkgname=(leftwm-nonsystemd-git leftwm-git)
pkgver=0.5.1.r28.g765a1aeb
pkgrel=1
pkgdesc="A tiling window manager for the adventurer"
arch=('i686' 'x86_64')
url="https://github.com/leftwm/leftwm"
license=('MIT')
depends=(gcc-libs)
makedepends=('cargo' 'git')
optdepends=('bash: themes'
'dmenu: default launcher'
'eww: flexible status bar'
'feh: used to set background images'
'lemonbar: light weight bar'
'polybar: light weight bar')
provides=('leftwm')
conflicts=('leftwm')
source=("$pkgbase::git+https://github.com/leftwm/leftwm.git")
md5sums=('SKIP')
install='readme.install'
prepare() {
cd $pkgbase
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
pkgver() {
cd $pkgbase
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgbase
export CARGO_TARGET_DIR=target_non_systemd
cargo build --frozen --release --no-default-features --features=lefthk,sys-log,xlib
export CARGO_TARGET_DIR=target_systemd
cargo build --frozen --release
}
_package() {
install -Dm755 leftwm{,-worker,-state,-check,-command} lefthk-worker -t "$pkgdir"/usr/bin/
cd ../../
install -Dm644 leftwm/doc/leftwm.1 -t "$pkgdir"/usr/share/man/man1/
install -d "$pkgdir"/usr/share/leftwm
cp -R themes "$pkgdir"/usr/share/leftwm
install -Dm644 leftwm.desktop -t "$pkgdir"/usr/share/xsessions/
}
package_leftwm-nonsystemd-git() {
pkgdesc+=" (non-systemd init)"
cd $pkgbase/target_non_systemd/release
_package
}
package_leftwm-git() {
pkgdesc+=" (systemd init)"
depends+=(systemd)
cd $pkgbase/target_systemd/release
_package
}
md5sums=('SKIP')
|