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= install=
provides=("$pkgname") provides=("$pkgname")
conflicts=("$pkgname") conflicts=("$pkgname")
source=("${pkgname}-${pkgver}.tar.gz" source=(http://dl.suckless.org/tools/slstatus-1.0.tar.gz
"config.h") config.h)
sha256sums=('SKIP' 'SKIP') sha256sums=('6d6d0a16c08dd9d211172c30c4720701267a3f40cdc938db3f386f6a2b6cff54'
'6a2df67ebdb5480644ec2b9176bfcf771aabc99c1329c8d16c3ef2cc0f56dad1')
prepare() { prepare() {
cd "${pkgname}-modified" || exit 1 cd "${pkgname}-${pkgver}" || exit 1
echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk
echo "CFLAGS+=${CFLAGS}" >> config.mk echo "CFLAGS+=${CFLAGS}" >> config.mk
echo "LDFLAGS+=${LDFLAGS}" >> config.mk echo "LDFLAGS+=${LDFLAGS}" >> config.mk
@ -27,14 +28,14 @@ prepare() {
} }
build() { build() {
cd ${pkgname}-modified cd ${pkgname}-${pkgver}
make \ make \
X11INC=/usr/include/X11 \ X11INC=/usr/include/X11 \
X11LIB=/usr/lib/X11 X11LIB=/usr/lib/X11
} }
package() { package() {
cd ${pkgname}-modified cd ${pkgname}-${pkgver}
make PREFIX=/usr DESTDIR="${pkgdir}" install make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" 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[] = { static const struct arg args[] = {
/* function format argument */ /* function format argument */
{ ram_perc, "%s%%", NULL }, { uptime, "upt %s | ", NULL },
{ separator, "%s", " | " }, { ram_perc, "%s%% | ", NULL },
{ datetime, "%s", "%F %T" }, { datetime, "%s", "%F %T" },
}; };