You are not logged in.
i want the PKGBUILD to download the file from github but i cant find how to get the correct link of the file?
https://github.com/dzwdev/Accurate_Time … mes.tar.xz
i tried to copy the link with "bolb" but when adding it to PKGBUILD it is not working.
i hope that you can help
Last edited by ardv (2024-09-26 09:06:55)
Offline
that's not how the github webpage is meant to be interacted with
cloning the repo could be an option
Offline
https://github.com/dzwdev/Accurate_Time … mes.tar.xz # the file from the HEAD of the master branch
https://github.com/dzwdev/Accurate_Time … s/main.zip # snapshot of the HEAD of the master branch as zip archive
But there's a PKGBUILD in that repo and a script and a .desktop service so this is probably an https://en.wikipedia.org/wiki/XY_problem and not how PKGBUILDs work and regardless how you can download files from github, please describe what you're actually trying to achieve here.
Offline
Or use the "Raw" link on the GitHub page: https://github.com/dzwdev/Accurate_Time … mes.tar.xz
"The nation-state domesticates the society in the name of capitalism and alienates the community from its natural foundations."
— Democratic Confederalism, Abdullah Öcalan.
Offline
https://github.com/dzwdev/Accurate_Time … mes.tar.xz # the file from the HEAD of the master branch
https://github.com/dzwdev/Accurate_Time … s/main.zip # snapshot of the HEAD of the master branch as zip archiveBut there's a PKGBUILD in that repo and a script and a .desktop service so this is probably an https://en.wikipedia.org/wiki/XY_problem and not how PKGBUILDs work and regardless how you can download files from github, please describe what you're actually trying to achieve here.
thank you. that link worked. but how did you get it? and i could not manage to find from where to copy it in github page.
i needed that link to put in in the source of the PKGBUILD, and that repo i have posted is added by me.
Offline
Yes, but why are you putting a github link into a PKGBUILD distributed via github.
That makes no sense. Users would just download those sources along the PKGBUILD, in doubt w/ a github snapshot.
but how did you get it?
1. same across all github
2. https://github.com/dzwdev/Accurate_Time … mes.tar.xz - the "raw" links
Offline
Yes, but why are you putting a github link into a PKGBUILD distributed via github.
That makes no sense. Users would just download those sources along the PKGBUILD, in doubt w/ a github snapshot.but how did you get it?
1. same across all github
2. https://github.com/dzwdev/Accurate_Time … mes.tar.xz - the "raw" links
i have uploaded the PKGBUILD to the AUR and used github to upload the tar.xy file
Offline
Ok, but you actually wanted to add a -git package, https://wiki.archlinux.org/title/AUR_su … submission
You might get flagged for that since the links I posted are the master HEADs "and are not tied to a specific version"
https://wiki.archlinux.org/title/PKGBUILD
But there're plenty of AUR packages you can use as pattern.
Offline
Ok, but you actually wanted to add a -git package, https://wiki.archlinux.org/title/AUR_su … submission
You might get flagged for that since the links I posted are the master HEADs "and are not tied to a specific version"
https://wiki.archlinux.org/title/PKGBUILD
But there're plenty of AUR packages you can use as pattern.
thank you.
so i need to add the version to the filename in that github repo?
Offline
You'd https://github.com/dzwdev/Accurate_Time … mes.tar.xz intead of the master head for the particular commit of the file you linked in teh OP.
Iff this is really your goal.
Distributing tarballs via github is however abusive and completely missing the approach of github.
If you want to download a tarball of a particular snapshot of the repo, github can do that, too.
Offline