You are not logged in.
Pages: 1
Is there any option in a PKGBUILD to tell makepkg to always download a source file, even if it's already found in $SRCDEST?
Edit, I tried manually removing the file from $SRCDEST in the global section of the PKGBUILD and it does get redownloaded, but then gets removed again when the PKGBUILD is sourced after the sources are downloaded, so that's a no-go.
Edit2: This seems to work
# make sure CMakeLists.txt gets re-downloaded
if [[ -z $_removed ]]; then
[[ -e "$SRCDEST/$_pkgname-CMakeLists.txt" ]] && rm "$SRCDEST/$_pkgname-CMakeLists.txt"
_removed=1
fiAnyone have a better solution? This is still better than what I was doing, but could be cleaner if there's another option that I'm not aware of.
Last edited by Scimmia (2014-07-05 03:23:00)
Offline
The source files suppose to be immutable unless you use some kind of VCS package.
What exactly you are trying to do, why do you need to redownload it each time?
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
Because it is part of a VCS package, specifically ewebkit-svn. Unfortunately, the webkit svn repo is absolutely massive, approaching 3GB last time I checked and expanding all of the time. It includes all of their tests, the entire website, etc. Even worse, their repo structure horrible, requiring files from the root dir to build. I've been manually doing the checkout with --depth immediates to get the files from the root dir, then doing an update --set-depth infinity on the one dir we need. This creates a bit of a mess as far as the source array and pkgver function go, though. I'm attempting to just checkout the subdir and grab the other needed files directly from the repo.
Offline
Looks like the snippet posted above doesn't work out, either. The custom variable gets clear and the PKGBUILD gets re-sourced before the package function, so the file gets removed. Still looking for a good option.
Offline
scimmia,
how about removing the svn repo from the source array and falling back to the old VCS method of downloading stuff manually in the build() section ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
That's pretty much what I'm doing now, except that I'm adding it to the source array if it already exists in $SRCDIR. Since I figured out that it's only a single file I need from the root dir, I'm just looking for a cleaner way.
Offline
OK, the above snippet works if I export the variable. Makes sense, since it's going into fakeroot.
Offline
Pages: 1