summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f23168ad24f9304b835e6906d1427fa2022e1de7 (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
# Maintainer: Chris Down <chris@chrisdown.name>

pkgname=dwm-cdown-git
_gitname=dwm
pkgver=0.r1710.eba96d9
pkgrel=1
pkgdesc="dwm with cdown's personalisations"
license=('MIT')
url='https://github.com/cdown/dwm'
depends=('libx11' 'libxinerama' 'libxft')
arch=('any')
makedepends=('git')
conflicts=('dwm')
provides=('dwm')

source=('git://github.com/cdown/dwm.git')
md5sums=('SKIP')

pkgver() {
    cd "$_gitname"
    printf '0.r%s.%s' \
        "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$_gitname"
    make
}

package() {
    cd "$_gitname"
    make PREFIX=/usr DESTDIR="$pkgdir" install
}