summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c52b02028c93dee8b3be6a7f844209ae1214b3d1 (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: Anish Vundela <anishreddyvundela@gmail.com>
pkgname=dwm-supermario9590-git
_pkgname=dwm
pkgver=6.2
pkgrel=1
pkgdesc="My custom build of DWM"
arch=(x86_64 i686)
url="https://gitlab.com/supermario9590/dwm-supermario9590"
license=('MIT')
groups=()
depends=(libx11 libxinerama libxft nerd-fonts-mononoki ttf-symbola freetype2 st dmenu emacs)
makedepends=('git')
provides=(dwm)
conflicts=(dwm)
replaces=()
backup=()
options=()
install=
source=('dwm::git+https://git.suckless.org/dwm')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${_pkgname}"
	patch -p1 -i "../../dwm-supermario9590.diff"
}

build() {
	cd "$srcdir/${_pkgname}"
	make
}

package() {
	cd "$srcdir/${_pkgname}"
	make PREFIX=/usr DESTDIR="$pkgdir/" install
	install -m644 -D LICENCE "$pkgdir/usr/share/licences/$pkgname/LICENCE"
	install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}