summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e0e8a1019eb2b6971f296ccac0b17c8c66bda64 (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
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: nvlli <nvllvs0 at gmail dot com>

pkgname=dwmblocks-fast-git
pkgver=0.1
pkgrel=1
epoch=
pkgdesc="A modular status bar for window managers (fork of dwmblocks)"
arch=(x86_64)
url="https://github.com/iakobvs/dwmblocks-fast"
license=('ISC')
depends=(libx11
	alsa-lib
	cuda)
makedepends=(git
	make)
optdepends=('dwm: window manager'
	'gst-plugins-base-libs: sound notifications'
	'dunst: popup notifications'
	'pamixer: audio control and monitoring'
	'procps: send signals with pkill')
source=("git+$url")
sha256sums=('SKIP')

prepare() {
	cd dwmblocks-fast
	make config
	echo ''
	echo '======================================================================================='
	echo 'For AUR users:'
	echo '======================================================================================='
	echo 'Pass the desired flags as a variable as DWMBLOCKS_FAST_OPTIONS to makepkg. For example:'
	echo 'DWMBLOCKS_FAST_OPTIONS="disable-nvidia disable-nvml" makepkg -si -f'
	echo ''
	echo 'Current dependencies (which you can disable with DWMBLOCKS_FAST_OPTIONS):'
	echo "${depends[@]}"
}

check() {
	cd dwmblocks-fast
	make -k check
}

build() {
	cd dwmblocks-fast
	if [ -n "$DWMBLOCKS_FAST_OPTIONS" ]; then
		make $DWMBLOCKS_FAST_OPTIONS
	fi
	make
}

package() {
	cd dwmblocks-fast
	make DESTDIR="$pkgdir/" install
}