summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02675c6c666c688e0a372a235f5cca181239a466 (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
# Maintainer: monosans <hsyqixco at protonmail dot com>

pkgname=dwm-luke-git
pkgver=6.2.r1861.94906e1
pkgrel=1
pkgdesc="Luke's dynamic window manager for X"
url=https://github.com/LukeSmithxyz/dwm
arch=(i686 x86_64)
license=(MIT)
depends=(freetype2 libx11 libxft-bgra)
makedepends=(git)
source=(git://github.com/LukeSmithxyz/dwm)
sha256sums=('SKIP')
provides=(dwm)
conflicts=(dwm)

pkgver() {
	cd dwm
	echo "$(awk '/^VERSION =/ {print $3}' config.mk)".r"$(git rev-list --count HEAD)"."$(git rev-parse --short HEAD)"
}

build() {
	cd dwm
	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
	cd dwm
	make PREFIX=/usr DESTDIR="${pkgdir}" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}