blob: 3e8daeac0e8d0cac7d28397090b272ad82d96223 (
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
|
# Maintainer: Lex Childs <lexchilds@gmail.com>
# Contributor: éclairevoyant
pkgbase=leftwm
pkgname=(leftwm leftwm-nonsystemd)
pkgver=0.5.3
pkgrel=2
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')
source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('b0576a18bd73b6a4372b8eba08c04da432a8643ebca15ee46340a77ba31b1bfc')
install='readme.install'
provides=('leftwm')
conflicts=('leftwm')
prepare() {
cd $pkgbase-$pkgver
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build() {
cd $pkgbase-$pkgver
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/
install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/leftwm/LICENSE
}
package_leftwm-nonsystemd() {
pkgdesc+=" (non-systemd init)"
cd $pkgbase-$pkgver/target_non_systemd/release
_package
}
package_leftwm() {
pkgdesc+=" (systemd init)"
depends+=(systemd)
cd $pkgbase-$pkgver/target_systemd/release
_package
}
|