1
0
mirror of https://github.com/alrayyes/slstatus synced 2023-11-14 15:56:27 +00:00
slstatus/PKGBUILD
2019-02-22 18:48:44 +01:00

37 lines
854 B
Bash

# Maintainer: Ankit R Gadiya <arch@argp.in>
pkgname=slstatus-git
pkgver=r552.b14e039
pkgrel=1
pkgdesc='A status monitor for window managers'
arch=('i686' 'x86_64')
url='http://tools.suckless.org/slstatus'
depends=('libx11')
makedepends=('git')
license=('custom:ISC')
source=("git+https://git.suckless.org/${pkgname%-git}"
"config.h")
md5sums=('SKIP'
'ce9e0a0861335b6fbc4ff039bef0c9d5')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cp config.h "${pkgname%-git}/config.h"
}
build() {
cd "${pkgname%-git}"
make X11INC='/usr/include/X11' X11LIB='/usr/lib/X11'
}
package() {
cd "${pkgname%-git}"
make DESTDIR="${pkgdir}" PREFIX='/usr/' install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}