blob: d19b3230ad60e6bf8566a4e543be68a224db4147 (
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
|
# Maintainer: Devin J. Pohly <djpohly+arch@gmail.com>
pkgname=dwl-git
pkgver=0.8.dev.r46.8424576
pkgrel=1
pkgdesc="Simple, hackable dynamic tiling Wayland compositor (dwm for Wayland)"
arch=('x86_64')
url="https://codeberg.org/dwl/dwl"
license=('GPL')
depends=('wlroots-git')
makedepends=('git' 'make' 'wayland-protocols')
optdepends=('xorg-xwayland: for XWayland support')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
# append #branch=wlroots-next to build against wlroots-git
source=('git+https://codeberg.org/dwl/dwl'
config.h)
sha256sums=('SKIP' 'SKIP')
prepare() {
cd "$srcdir/${pkgname%-git}"
# Use a custom config.h if the file is not empty
if [ -s "$srcdir/config.h" ]; then
cp -f "$srcdir/config.h" config.h
fi
# Comment the line below to compile without
# XWayland support
sed -i -e '/-DXWAYLAND/s/^#//' config.mk
}
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}"
make
}
package() {
cd "$srcdir/${pkgname%-git}"
make PREFIX="$pkgdir/usr/" install
}
|