Package Details: readme-generator-git r62.2092668-1

Git Clone URL: (read-only, click to copy)
Package Base: readme-generator-git
Description: A basic tool to generate modern readme's
Upstream URL:
Keywords: readme
Licenses: GPL
Submitter: F0xedb
Maintainer: F0xedb
Last Packager: F0xedb
Votes: 0
Popularity: 0.000000
First Submitted: 2019-08-06 19:45
Last Updated: 2019-08-25 20:35

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

yochananmarqos commented on 2019-08-07 13:36

FYI, you don't need to bump the version on VCS packages. The latest commit is pulled each time it's built. Unless something needs to be changed or added to the PKGBUILD itself, it can stay as is.

F0xedb commented on 2019-08-06 21:08

@yochananmarqos Thanks for the tips! I have changed the PKGBUILD as requested. If I have made more mistakes please let me know.

yochananmarqos commented on 2019-08-06 20:33

Please add a pkgver() array per VCS package guidelines:

If there are no tags then use number of revisions since beginning of the history:

pkgver() {
    cd "$srcdir/$_reponame"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

You'll also need to add git to makedepends.

Instead of using mkdir & cp, you can use install -D and also set permissions. No need for your prepare() array at all.

package() {
    cd "$srcdir/$_reponame"
    install -Dm755 readme-gen $pkgdir/usr/bin/readme-gen
    install -Dm644 demo $pkgdir/var/cache/readme/demo