tony / oxwm

Branch: 6e5e280
Switch branches/tags
master
tonybtw Added man page, and added it to flake. 45d6ad2 2025-11-01
38 lines · 1.1 KB Raw Blame History
1 # Maintainer: Tony, btw <tony@tonybtw.com>
2 pkgname='oxwm-git'
3 _pkgname='oxwm'
4 pkgver=0.4.0.177.g6dc200c
5 pkgrel=1
6 arch=('x86_64')
7 url="https://github.com/tonybanters/oxwm"
8 pkgdesc="DWM but better with sane defaults, and not suckless."
9 license=('GPL-3.0-or-later')
10 depends=('libx11' 'libxft' 'libxcb' 'fontconfig' 'freetype2' 'libxrender')
11 makedepends=('cargo' 'git')
12 provides=('oxwm')
13 conflicts=('oxwm')
14 source=("$_pkgname::git+https://github.com/tonybanters/oxwm.git")
15 sha256sums=('SKIP')
16
17 pkgver() {
18 cd $_pkgname
19 echo "$(grep '^version =' Cargo.toml | head -n1 | cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
20 }
21
22 build() {
23 cd $_pkgname
24 cargo build --release --locked
25 }
26
27 check() {
28 cd $_pkgname
29 cargo test --release
30 }
31
32 package() {
33 cd $_pkgname
34 install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
35 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
36 install -Dm644 oxwm.desktop "$pkgdir/usr/share/xsessions/oxwm.desktop"
37 install -Dm644 oxwm.1 "$pkgdir/usr/share/man/man1/oxwm.1"
38 }