summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: f487cfc49727b3a56f4333d280466f189f6a7dbc (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
# Maintainer: clsr <clsr@clsr.net>

pkgname=dwmclock
pkgver=1.4.0
pkgrel=1
pkgdesc="Time and battery charge display for dwm"
arch=('x86_64')
url="https://git.clsr.net/util/dwmclock/about/"
license=('custom:Public Domain')
depends=('libx11')
source=("https://git.clsr.net/util/dwmclock/snapshot/dwmclock-$pkgver.tar.gz"
        config.mk)
sha256sums=('95bdfc61593566f8f43452f2941a8fcdc3bbc3f6edd9007196b4b6d70adb3ae5'
            'SKIP')

prepare() {
	cd "$pkgname-$pkgver"
	if [[ -f "$srcdir/config.mk" ]]; then
		cp -fv "$srcdir/config.mk" config.mk
	elif [[ ! -f config.mk ]]; then
		cp -v config.def.mk config.mk
	fi
}

build() {
	cd "$pkgname-$pkgver"
	make all dwmclock-print
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" PREFIX="/usr" install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}