[Frugalware-darcs] pacman: doc/makepkg.8.in: added a few notes
about having subpackages in an other repo
VMiklos
vmiklos at frugalware.org
Thu Mar 16 17:48:32 CET 2006
[doc/makepkg.8.in: added a few notes about having subpackages in an other repo
VMiklos <vmiklos at frugalware.org>**20060204222005] {
hunk ./doc/makepkg.8.in 470
+
+Special case: subpkgs in other repos.
+
+The situation is the following: you have a package which is in the frugalware
+repo, but you want its subpackage to be in extra. It's a but tricky, but still
+possible.
+
+The trick is to create a fake FrugalBuild in the other repo. You could place
+it whereever you want, but to use repoman you need to place it under
+$fst/extra/source/subpkgs/pkgname, where pkgname is the name of the original
+main package.
+
+How to create that fake FrugalBuild?
+
+Copy the original one, but remove everything except the subfoo directives,
+pkgver and pkgrel. The next step is to clarify which subpackage have to be
+in which repo. This is done by removing the architectures from the subarchs()
+array.
+
+Example:
+.nf
+
+The old main:
+
+subpkgs=('foo' 'bar')
+subarchs=('i686 x86_64' 'i686 x86_64')
+
+The new main:
+subpkgs=('foo' 'bar')
+subarchs=('i686 x86_64' '')
+
+The new fake:
+subpkgs=('foo' 'bar')
+subarchs=('' 'i686 x86_64')
+
+.fi
+This means that bar is expected to be uploaded to extra, while foo is still in
+the frugalware repo. If you move all the subpackages to extra, then of course
+you can remove the whole subarchs() array from the main FrugalBuild.
}
More information about the Frugalware-darcs
mailing list