mirror of
https://github.com/alrayyes/slstatus.git
synced 2024-11-22 03:26:23 +00:00
36 lines
854 B
Bash
36 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"
|
|
}
|