You are not logged in.
Pages: 1
I would recommend to make PKGBUILDs more flexible by adding the possibilty to install to a custom prefix. This would need another variable like $srcdir or $pkgdir in makepkg (say $prefix), but still provide backwards compatibility for older versions without support for this variable.
Here a patch for coreutils:
diff -urN coreutils/PKGBUILD coreutils_prefixed/PKGBUILD
--- coreutils/PKGBUILD 2015-02-28 11:40:26.205559513 +0100
+++ coreutils_prefixed/PKGBUILD 2015-02-28 11:41:44.479080115 +0100
@@ -26,8 +26,8 @@
build() {
cd $pkgname-$pkgver
./configure \
- --prefix=/usr \
- --libexecdir=/usr/lib \
+ --prefix="${prefix:-/usr}" \
+ --libexecdir="${prefix:-/usr}/lib" \
--with-openssl \
--enable-no-install-program=groups,hostname,kill,uptime
make
I don't claim this solution to be the ideal, but I would see great use in this feature.
Offline
You probably want to open a feature request against pacman in the bug tracker...
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
No you don't... this is nothing to do with pacman. And I doubt Arch would support that either.
Offline
Nothing needs to be added for this. Any package that supports prefix specification in the build/install will already work this way. Just define the PREFIX variable you want to use. Note that the patch in your initial post only patches a PKGBUILD. If /usr/ is hardcoded in the PKGBUILD and you'd rather have it use the PREFIX variable, report that to the maintainer of the PKGBUILD or edit it yourself.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I don't see a reason for a global option in makepkg for compiling a few select packages with a different prefix. Simply edit each PKGBUILD you need, that should not be too much work. Regardless, if you want to install multiple versions of a package in different locations (e.g. opt), you'll have to modify the package name and other metadata, too.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
No you don't... this is nothing to do with pacman. And I doubt Arch would support that either.
But...
% pacman -Qo makepkg
/usr/bin/makepkg is owned by pacman 4.2.1-1
So if he wanted the dev group to see the request, why not open the FS against core/pacman?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Nothing needs to be added for this.
What feature is being requested? Variables can already be defined by users and used in PKGBUILDs.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Allan wrote:No you don't... this is nothing to do with pacman. And I doubt Arch would support that either.
But...
% pacman -Qo makepkg /usr/bin/makepkg is owned by pacman 4.2.1-1
So if he wanted the dev group to see the request, why not open the FS against core/pacman?
Filing it against pacman ensures only I see it, and not the whole dev group
Offline
Filing it against pacman ensures only I see it, and not the whole dev group
But you already saw it
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Pages: 1