slstatus: properly getting from website, and removed the useless separator()

This commit is contained in:
Vitor Gonçalves 2024-01-23 23:52:52 -03:00
parent 45787374c4
commit 50799bef16
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
2 changed files with 9 additions and 8 deletions

View File

@ -12,12 +12,13 @@ depends=()
install=
provides=("$pkgname")
conflicts=("$pkgname")
source=("${pkgname}-${pkgver}.tar.gz"
"config.h")
sha256sums=('SKIP' 'SKIP')
source=(http://dl.suckless.org/tools/slstatus-1.0.tar.gz
config.h)
sha256sums=('6d6d0a16c08dd9d211172c30c4720701267a3f40cdc938db3f386f6a2b6cff54'
'6a2df67ebdb5480644ec2b9176bfcf771aabc99c1329c8d16c3ef2cc0f56dad1')
prepare() {
cd "${pkgname}-modified" || exit 1
cd "${pkgname}-${pkgver}" || exit 1
echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk
echo "CFLAGS+=${CFLAGS}" >> config.mk
echo "LDFLAGS+=${LDFLAGS}" >> config.mk
@ -27,14 +28,14 @@ prepare() {
}
build() {
cd ${pkgname}-modified
cd ${pkgname}-${pkgver}
make \
X11INC=/usr/include/X11 \
X11LIB=/usr/lib/X11
}
package() {
cd ${pkgname}-modified
cd ${pkgname}-${pkgver}
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

View File

@ -65,7 +65,7 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
{ ram_perc, "%s%%", NULL },
{ separator, "%s", " | " },
{ uptime, "upt %s | ", NULL },
{ ram_perc, "%s%% | ", NULL },
{ datetime, "%s", "%F %T" },
};