2019-03-10 21:26:40 +00:00
|
|
|
# Maintainer: Ryan Kes <alrayyes@gmail.com>
|
2019-02-22 17:48:44 +00:00
|
|
|
|
|
|
|
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-22 15:23:55 +00:00
|
|
|
depends=('libx11' 'notmuch')
|
2019-02-22 17:48:44 +00:00
|
|
|
makedepends=('git')
|
|
|
|
license=('custom:ISC')
|
2019-03-05 20:25:44 +00:00
|
|
|
|
|
|
|
_patches=(
|
2019-03-12 08:56:14 +00:00
|
|
|
"seperator-20190305-f4e35fa.diff"
|
|
|
|
"backlight-20190305-85a4a18.diff"
|
2019-03-12 08:54:39 +00:00
|
|
|
"ipv4-multiple-20190312-5f08c89.diff"
|
2019-03-12 09:16:44 +00:00
|
|
|
"netspeed-multiple-20190312-2ac86e1.diff"
|
2019-03-12 11:48:53 +00:00
|
|
|
"combined_network-20190312-619ed9f.diff"
|
2019-04-02 09:37:14 +00:00
|
|
|
"alsa-20190402-eeb3975.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-04-02 09:40:19 +00:00
|
|
|
'3b8269c3e8d46db84137dca1e023d6e0'
|
2019-03-10 20:28:53 +00:00
|
|
|
'24ea93ef665decc0315248f62aa65f44'
|
2019-03-12 08:54:39 +00:00
|
|
|
'58404d0af1893f560926daf605a79919'
|
2019-03-12 09:16:44 +00:00
|
|
|
'fc9b31ea31470b6816f1f92c6bc6fa9d'
|
2019-03-12 11:48:53 +00:00
|
|
|
'30f0a42ffc0e4f1e102ad2e3d1afe988'
|
2019-04-02 09:37:14 +00:00
|
|
|
'865b046340744bc08c52170e0be78355'
|
|
|
|
'567fdf2576d647be311827bc8f82c5cd')
|
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"
|
|
|
|
}
|