On 20/05/2016 20:20, Achim Gratz wrote:
Marco Atzeri writes:
To move the documentation in a noarch package
I split lilypond in two source packages.
I'm not too enamored with this idea… we will eventually end up with the
possibility of having parts of packages noarch and other parts arch-ful.
Trying to preempt that goal by going berserk on package definitions that
are not noarch only seems wrong to me.
Regards,
Achim.
In this case is not documentation built from the source,
it is separately downloaded already now, just packaged
together for convenience.
Putting in noarch reduce the duplication.
SRC_URI="http://download.linuxaudio.org/${PN}/sources/v${MAJOR_VERSION}.${MINOR_VERSION}/${P}.tar.gz
http://www.lilypond.org/doc/v2.19/Documentation/learning.pdf"
src_install() {
...
insinto /usr/share/doc/lilypond/pdf
doins ${S}/learning.pdf
}
currently there are 4 copies of learning.pdf
(source + binary) for each arch.
Marco