summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2bf14796b4639ac2ae6f8da1df86a100ea8e5a3f (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
# Maintainer: Klaus-Dieter Schmatz <tucuxir at sapo dot pt>
pkgname=dwm-tucuxi-git
pkgver=6.2.r34.g9a93efb
pkgrel=2
pkgdesc="A customized DWM build"
arch=('x86_64')
url="https://gitlab.com/tuxaua/dwm"
license=('MIT')
groups=()
depends=('libx11' 'libxinerama' 'libxft')
makedepends=('git')
optdepends=('alacritty: terminal support'
            'rofi: application launcher support')
provides=('dwm')
conflicts=('dwm')
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+https://gitlab.com/tuxaua/dwm.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "${pkgname%-git}"
  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  cd "${pkgname%-git}"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: