Package Details: slstatus-git r540.dd7f189-1

Git Clone URL: https://aur.archlinux.org/slstatus-git.git (read-only, click to copy)
Package Base: slstatus-git
Description: A status monitor for window managers
Upstream URL: http://tools.suckless.org/slstatus
Licenses: custom:ISC
Submitter: ankitrgadiya
Maintainer: ankitrgadiya
Last Packager: ankitrgadiya
Votes: 3
Popularity: 0.29
First Submitted: 2017-09-25 14:14 (UTC)
Last Updated: 2018-09-12 10:58 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

1 2 Next › Last »

<deleted-account> commented on 2019-11-09 09:15 (UTC)

Look, maybe it will be more convenient. In this case, config.h is not needed in the array. So implemented in st-git PKGBUILD.\n

prepare() {\n cd $srcdir/${pkgname%-git}\n

echo 'Copying config.def.h to $startdir...'\n cp -fv config.def.h "$startdir/"\n

if [[ -f "$startdir/config.h" ]]; then\n echo 'Copy config.h to the build directory...'\n cp -fv "$startdir/config.h" config.h\n fi\n }

ankitrgadiya commented on 2018-09-12 10:46 (UTC)

Thanks for letting me know. I'll update the config file.

daxx commented on 2018-08-28 04:16 (UTC)

also, it should be noted that some things have been added/removed from the config.def.h file

see the config.def.h in their git repo for an updated list of options

https://git.suckless.org/slstatus/file/config.def.h.html

ankitrgadiya commented on 2018-06-26 15:13 (UTC)

dax0 Thanks for informing. Updated the config.h, package building again.

daxx commented on 2018-06-25 19:28 (UTC)

package won't compile unless you drop the 'static' keyword from the 'interval' variable in config.h

the config.h that comes with the package is out of date

https://git.suckless.org/slstatus/commit/config.def.h?id=22175f0d5792f1d046b6b501c694a3afabc877ed

ankitrgadiya commented on 2017-12-06 07:06 (UTC) (edited on 2017-12-06 07:08 (UTC) by ankitrgadiya)

First, you are not supposed to change config.h in source tree. Second, and i'm repeating this, if you want to edit the config.h in package directory, first replace the checksum in PKGBUILD file with skip. Read PKGBUILD#Integrity. Third, I'm not the only one handling config.h by PKGBUILD, check st.

pavard commented on 2017-12-05 11:33 (UTC) (edited on 2017-12-05 13:24 (UTC) by pavard)

I did not talk about the generation of anything. if change config.h in source tree next makepkg call will rewrite it. if change config.h in package directory makepkg will terminate with error invalid checksum. and it's impossible to create package with custom config without changing PKGBUILD. your config.h is identical to config.def.h. and there is no need to handle and copy it by PKGBUILD. this only complicates the use of the package. just delete config.h from PKGBUILD. upd: hm, only you who handle suckless-projects config.h by PKGBUILD. good.

ankitrgadiya commented on 2017-12-05 05:46 (UTC) (edited on 2017-12-05 05:47 (UTC) by ankitrgadiya)

This means if there is no config.h file present in the directory, it will copy the config.def.h in config.h and it won't generate anything. Also, as we're fetching the source directly from internet, this is not very good idea to first fetch and then edit files and then generate the package out of it. So, what I did is added the config.h file in the package itself so you can edit that file easily if you want and then makepkg will take care of handling the config file.

pavard commented on 2017-12-04 11:36 (UTC) (edited on 2017-12-04 11:38 (UTC) by pavard)

if you look in the Makefile, you will see:

slstatus.o: ... config.h ...
...
config.h:
    cp config.def.h $@
that will create the config automatically if it does not exist, and will allow you to freely manipulate it without changing any package or assembly scripts.

ankitrgadiya commented on 2017-11-28 06:08 (UTC) (edited on 2017-11-28 06:08 (UTC) by ankitrgadiya)

As this config file is the only way to configure the program, I added it and later overwrite the source config file with this one, in order to apply the configuration. Identical, because for a user who's just installing it, I want the default configuration to apply and not force my own version. Checksum because this file is also fetched from internet. If you want to change the file you can either skip the checksum in PKGBUILD or add new checksums of the edited version to the PKGBUILD.