Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".
* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
FS#66541 - add option to "pick" files from one split package to another
Attached to Project:
Pacman
Opened by nathan (ndowens) - Tuesday, 05 May 2020, 01:42 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 05 May 2020, 03:08 GMT
Opened by nathan (ndowens) - Tuesday, 05 May 2020, 01:42 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 05 May 2020, 03:08 GMT
|
DetailsWasn't sure which category to add this, if this belongs elsewhere please move.
I am wondering if the following function could become part of PKGBUILD/makepkg natively. I found it in another PKGBUILD and it is nice to use to allow split pkgs to move dirs/files easily into other package-*(){} example say we want to move usr/share/docs into package_pkg-doc() package() { .... cd "$pkgdir" pick docs usr/share/docs } package_pkg-doc() { ... mv docs/* "$pkgdir" } pick() { local p="$1" f d; shift for f; do d="$srcdir/$p/${f#$pkgdir/}" mkdir -p "$(dirname "$d")" mv "$f" "$d" rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")" done } |
This task depends upon
build() {
...
}
package() {
make DESTDIR=$pkgdir install
}
package_foo() {
filelist=(usr/share/docs/*)
}
package_bar() {
filelist=(usr/bin/*)
}
Followed by a warning for any files left over in the temporary area from the original package() function.