Package Details: slstatus-git r330.7246dc4-1

Git Clone URL: (read-only)
Package Base: slstatus-git
Description: A status monitor for window managers
Upstream URL:
Licenses: MIT
Submitter: ankitrgadiya
Maintainer: ankitrgadiya
Last Packager: ankitrgadiya
Votes: 1
Popularity: 0.060158
First Submitted: 2017-09-25 14:14
Last Updated: 2017-09-27 20:50

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

ankitrgadiya commented on 2017-12-06 07:06

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

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

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

if you look in the Makefile, you will see:

slstatus.o: ... 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

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.

pavard commented on 2017-11-27 08:39

delete please an extra config file. it is identical to the default, but it can not be edited, because it is protected by a checksum, and the generated default can not be edited, since the script prescribes to overwrite it.

ankitrgadiya commented on 2017-09-27 20:51

@sekret Done! Thanks

sekret commented on 2017-09-27 12:43

Please add git to makedepends.