FS#8187 - Add support for package function in PKGBUILD
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Monday, 01 October 2007, 03:53 GMT
Last edited by Dan McGee (toofishes) - Saturday, 17 January 2009, 17:07 GMT
Opened by Allan McRae (Allan) - Monday, 01 October 2007, 03:53 GMT
Last edited by Dan McGee (toofishes) - Saturday, 17 January 2009, 17:07 GMT
|
Details
Summary and Info:
Add support for a package function to be used if present. Use of this function would tell makepkg that the package is being split based on the subdirectories in the pkg directory. See fuller descriptions at: http://archlinux.org/pipermail/arch/2007-September/015631.html http://archlinux.org/pipermail/arch/2007-September/015645.html |
This task depends upon
Closed by Dan McGee (toofishes)
Saturday, 17 January 2009, 17:07 GMT
Reason for closing: Implemented
Additional comments about closing: See commit 3d49d88009341
Saturday, 17 January 2009, 17:07 GMT
Reason for closing: Implemented
Additional comments about closing: See commit 3d49d88009341
http://archlinux.org/pipermail/pacman-dev/2007-April/008171.html
http://bugs.archlinux.org/task/7144
http://bugs.archlinux.org/task/7982
I just had a quick look at the proposal and I have a question:
How do you handle the different variables for each subpackage (different pkgname, pkgver, desc, groups, etc)?
Have a look at
FS#7982with the kdemod example :http://bugs.archlinux.org/task/7982?getfile=1432
The idea of one subdirectory per subpackage looks interesting though.
About the handling of different configurations, it seems less nice and less useful.
The whole splitting packages in makepkg is something I was going to target for pacman 3.3. I think ideas from all three bug reports about this could be combined.
By the way, I looked at this because a new patch was submitted in
FS#7982which looked much simpler than the previous ones, and I haven't really figured out why yet.