[aur-general] How to use a local directory as the source for a -git package
I have tried the following, none of them working source="git://../.." source="git+../../" source="git+/path/to/somefile"
On Tue, May 14, 2013 at 5:38 PM, 郑文辉(Techlive Zheng) <techlivezheng@gmail.com> wrote:
I have tried the following, none of them working
source="git://../.."
source="git+../../"
source="git+/path/to/somefile"
source=('git+file:///path/to/somefile') -- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail | always bottom-post http://asciiribbon.org | http://caliburn.nl/topposting.html
2013/5/14 Chris “Kwpolska” Warrick <kwpolska@gmail.com>:
On Tue, May 14, 2013 at 5:38 PM, 郑文辉(Techlive Zheng) <techlivezheng@gmail.com> wrote:
I have tried the following, none of them working
source="git://../.."
source="git+../../"
source="git+/path/to/somefile"
source=('git+file:///path/to/somefile')
-- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail | always bottom-post http://asciiribbon.org | http://caliburn.nl/topposting.html
I have just figured that out, now my question is if it is possible to use a relative path?
On Tue, May 14, 2013 at 11:50 AM, 郑文辉(Techlive Zheng) <techlivezheng@gmail.com> wrote:
2013/5/14 Chris “Kwpolska” Warrick <kwpolska@gmail.com>:
On Tue, May 14, 2013 at 5:38 PM, 郑文辉(Techlive Zheng) <techlivezheng@gmail.com> wrote:
I have tried the following, none of them working
source="git://../.."
source="git+../../"
source="git+/path/to/somefile"
source=('git+file:///path/to/somefile')
-- Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16 stop html mail | always bottom-post http://asciiribbon.org | http://caliburn.nl/topposting.html
I have just figured that out, now my question is if it is possible to use a relative path?
Although I don't think that's a very good idea to use file:// url in a pkgbuild, if you have a good reason to use that locally, I guess you can use file://${PWD}/whatever/relative/path/you/want or maybe even file://$(realpath your/relative/path)
郑文辉(Techlive Zheng) writes:
I have tried the following, none of them working
source="git://../.."
source="git+../../"
source="git+/path/to/somefile"
Here's one of mine for the package dolfin-git: source=("dolfin::git+https://bitbucket.org/fenics-project/dolfin.git#branch=${_branch}")
2013/5/15 Myles English <mylesenglish@gmail.com>:
郑文辉(Techlive Zheng) writes:
I have tried the following, none of them working
source="git://../.."
source="git+../../"
source="git+/path/to/somefile"
Here's one of mine for the package dolfin-git:
source=("dolfin::git+https://bitbucket.org/fenics-project/dolfin.git#branch=${_branch}")
Okay, thanks guys. The relative path is still not working, but absolute path is fine. I know it is not good idea use a local path, but you know, it just a testing build of my project, so it's good at this case, I found is better use a Arch Package than `make install` for development.
On Wed, May 15, 2013 at 1:49 AM, 郑文辉(Techlive Zheng) <techlivezheng@gmail.com> wrote:
2013/5/15 Myles English <mylesenglish@gmail.com>:
郑文辉(Techlive Zheng) writes:
I have tried the following, none of them working
source="git://../.."
source="git+../../"
source="git+/path/to/somefile"
Here's one of mine for the package dolfin-git:
source=("dolfin::git+https://bitbucket.org/fenics-project/dolfin.git#branch=${_branch}")
Okay, thanks guys. The relative path is still not working, but
What is the problem of using realpath??
absolute path is fine. I know it is not good idea use a local path, but you know, it just a testing build of my project, so it's good at this case, I found is better use a Arch Package than `make install` for development.
participants (4)
-
Chris “Kwpolska” Warrick
-
Myles English
-
Yichao Yu
-
郑文辉(Techlive Zheng)