summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd85afbb651c074f1ccc95fc97c0a26fa2afa9b6 (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=r1685.61bb8b2
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 LICENSE "$pkgdir/usr/share/licences/$pkgname/LICENSE"
	install -m644 -D README "$pkgdir/usr/share/doc/$pkgname/README"
}