slstatus/PKGBUILD

55 lines
1.2 KiB
Text
Raw Normal View History

2019-02-22 17:48:44 +00:00
# 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'
2019-03-05 20:25:44 +00:00
depends=('libx11' 'alsa-utils' 'xorg-xbacklight')
2019-02-22 17:48:44 +00:00
makedepends=('git')
license=('custom:ISC')
2019-03-05 20:25:44 +00:00
_patches=(
"seperator-20180305-f4e35fa.diff"
2019-03-10 20:28:53 +00:00
"backlight-20180305-85a4a18.diff"
2019-03-05 20:25:44 +00:00
)
2019-02-22 17:48:44 +00:00
source=("git+https://git.suckless.org/${pkgname%-git}"
2019-03-05 20:25:44 +00:00
"config.h"
"${_patches[@]}")
2019-02-22 17:48:44 +00:00
md5sums=('SKIP'
2019-03-10 21:24:59 +00:00
'0fe1531906ed0d267687f7b425e331ab'
2019-03-10 20:28:53 +00:00
'24ea93ef665decc0315248f62aa65f44'
'58404d0af1893f560926daf605a79919')
2019-02-22 17:48:44 +00:00
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2019-03-05 20:25:44 +00:00
2019-02-22 17:48:44 +00:00
prepare() {
2019-03-05 20:25:44 +00:00
cd "${pkgname%-git}"
for patch in "${_patches[@]}"; do
echo "Applying patch $(basename $patch)..."
patch -Np1 -i "$srcdir/$(basename $patch)"
done
cp $srcdir/config.h config.h
2019-02-22 17:48:44 +00:00
}
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"
}