blob: a6ab54015eae442a3fb601aac1f5958dd9887dec (
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
|
# Maintainer: Tony, btw <tony@tonybtw.com>
pkgname='oxwm-git'
_pkgname='oxwm'
pkgver=0.12.0.0.gdd25e8c
pkgrel=1
arch=('x86_64')
url="https://github.com/tonybanters/oxwm"
pkgdesc="X11 Window Manager Inspired by DWM, but with better sane defaults."
license=('GPL-3.0-or-later')
depends=('freetype2' 'libx11' 'libxft' 'libxinerama' 'fontconfig' 'lua')
makedepends=('zig' 'git')
provides=('oxwm')
conflicts=('oxwm')
source=("$_pkgname::git+https://github.com/tonybanters/oxwm.git")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/-/./g'
}
build() {
cd $_pkgname
zig build -Doptimize=ReleaseSmall
}
check() {
cd $_pkgname
zig build test -Doptimize=ReleaseSmall
}
package() {
cd $_pkgname
install -Dm755 "zig-out/bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 resources/oxwm.desktop "$pkgdir/usr/share/xsessions/oxwm.desktop"
install -Dm644 resources/oxwm.1 "$pkgdir/usr/share/man/man1/oxwm.1"
install -Dm644 templates/oxwm.lua "$pkgdir/usr/share/oxwm/oxwm.lua"
}
|