diff options
author | Viachaslau Khalikin | 2021-04-10 02:03:31 +0300 |
---|---|---|
committer | Viachaslau Khalikin | 2021-04-10 02:03:31 +0300 |
commit | 5ba7d62c18d9f492817a5f179ee032609c22cfc8 (patch) | |
tree | 2e6ee12822a0fc6355739e0f240b72628aa94547 | |
download | aur-dwmstatus-git.tar.gz |
init
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a97ae880a179 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = dwmstatus-git + pkgdesc = A simple dwm status application in C + pkgver = r4.51bc02f + pkgrel = 1 + url = https://git.suckless.org/dwmstatus + arch = x86_64 + license = MIT + depends = libx11 + provides = dwmstatus + conflicts = dwmstatus + source = git+https://git.suckless.org/dwmstatus + sha256sums = SKIP + +pkgname = dwmstatus-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7d574815fe86 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Viachaslau Khalikin <khalikin'at'yandex> + +_pkgbase=dwmstatus +pkgname=dwmstatus-git +pkgver=r4.51bc02f +pkgrel=1 +pkgdesc="A simple dwm status application in C" +arch=('x86_64') +url="https://git.suckless.org/dwmstatus" +license=('MIT') +provides=("$_pkgbase") +conflicts=("$_pkgbase") +depends=('libx11') +source=("git+https://git.suckless.org/dwmstatus") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgbase" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + + +package() { + cd $_pkgbase + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 PREFIX=/usr DESTDIR="$pkgdir" install + install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ft=sh ts=2 sw=2 et: |