summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a2ab1100f3f2cc972b7542871e9684dac05a02c (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-layoutconfigrules-git
_gitname=dwm
pkgver=0.r1816.bcfb194
pkgrel=1
pkgdesc="dwm with layoutconfigrules patch applied"
license=('MIT')
url='https://github.com/cdown/dwm'
depends=('libx11' 'libxinerama' 'libxft')
arch=('any')
makedepends=('git')
conflicts=('dwm')
provides=('dwm')

source=('git+https://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
}