From c62e1681f7635254561d01ccaf995d0a16232b58 Mon Sep 17 00:00:00 2001 From: clsr Date: Sat, 28 Dec 2019 21:50:06 +0100 Subject: Initial commit --- PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..0c74991 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: clsr + +pkgname=dwmclock +pkgver=1.3.2 +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=('f3b9d49f151350857fbe30813f56a20b8aa570407aa1853f7cf0ec0c9b749138' + '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 +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir/" PREFIX="/usr" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} -- cgit