You are not logged in.

#1 2024-09-25 03:39:08

ardv
Member
Registered: 2024-03-24
Posts: 31

[SOLVED] how to get download link of file from github

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

#2 2024-09-25 03:58:55

cryptearth
Member
Registered: 2024-02-03
Posts: 796

Re: [SOLVED] how to get download link of file from github

that's not how the github webpage is meant to be interacted with
cloning the repo could be an option

Offline

#3 2024-09-25 07:45:18

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: [SOLVED] how to get download link of file from github

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

#4 2024-09-25 10:35:00

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,232
Website

Re: [SOLVED] how to get download link of file from github

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

#5 2024-09-26 06:59:14

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to get download link of file from github

seth wrote:

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.

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

#6 2024-09-26 07:03:10

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: [SOLVED] how to get download link of file from github

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

#7 2024-09-26 07:53:11

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to get download link of file from github

seth wrote:

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

#8 2024-09-26 07:58:46

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: [SOLVED] how to get download link of file from github

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

#9 2024-09-26 08:29:52

ardv
Member
Registered: 2024-03-24
Posts: 31

Re: [SOLVED] how to get download link of file from github

seth wrote:

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

#10 2024-09-26 08:46:18

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: [SOLVED] how to get download link of file from github

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

Board footer

Powered by FluxBB