-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add function to dynamically determine package version for PKGBUILD #186
Conversation
@timwehrle Can you show me some output from testing this on Arch? |
Sooo @kehoecj... I had to do an update within the function because after testing it intentionally I found some bugs. I read through the Arch forums and saw that using
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for the PR @timwehrle
Description:
This pull request resolves issue #176 by enhancing the
PKGBUILD
file to dynamically set thepkgver
based on Git tags.Changes:
pkgver()
function that dynamically retrieves the latest Git tag usinggit describe --tags
.sed 's/^v//;s/-.*//'
to format the version string, ensuring it adheres to thepkgver
format by:v
from the tag (e.g.,v1.7.1
becomes1.7.1
).-3-ge168780
).