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

pkgname=dwm-monosans-git
pkgver=6.2.1693.8f9cd7f
pkgrel=1
pkgdesc='A dynamic window manager for X with some additional features'
url="https://github.com/monosans/dwm"
arch=(i686 x86_64)
license=(MIT)
depends=(dmenu freetype2 libx11 libxft st)
makedepends=(git)
source=("git://github.com/monosans/dwm")
sha256sums=('SKIP')
provides=(dwm)
conflicts=(dwm)

pkgver() {
	cd dwm
	_pkgver=$(awk '/VERSION/ {print $3}' config.mk|head -1)
	echo "${_pkgver}.$(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"
}