blob: 030c80d131b9701680ce4af7780f75de34c88919 (
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
|
# Maintainer: Devin J. Pohly <djpohly+arch@gmail.com>
pkgname=dwl-git
pkgver=0.3.1.r27.d969289
pkgrel=1
pkgdesc="Simple, hackable dynamic tiling Wayland compositor (dwm for Wayland)"
arch=('x86_64')
url="https://github.com/djpohly/dwl"
license=('GPL')
depends=('wlroots>=0.13')
makedepends=('git' '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://github.com/djpohly/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
# Uncomment to compile with 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
}
|