[arch-general] makepkg/PKGBUILD - handle same files provided by 2 non-dependent packages?

Heiko Baums lists at baums-on-web.de
Sun Mar 25 16:08:43 EDT 2012


Am Sun, 25 Mar 2012 20:30:52 +0300
schrieb Jesse Juhani Jaara <jesse.jaara at gmail.com>:

> su, 2012-03-25 kello 12:24 -0500, David C. Rankin kirjoitti:
> >   Is there a go-by PKGBUILD that anyone can think of that does just
> > that?
> 
> In tdesdk's PKGBUILD do somthing like this
>  build () {
> pach -Np -i patches
> sed 's|clause|fix|' file.c
> .configure --prefix
> }
> 
> package_tdesdk ()
> {
> make install
> rm "$pkgdir/opt/trinity/share/services/"svn*
> }
> 
> package_tdeservices () {
> cp "$srcdir/tdeskd/src/service/generated/"svn*.protocol \
> "$pkgdir/opt/trinity/share/services/"
> }
> 
> 
> Thats kind of thng should do it :D
> Also the assumption here is that the tdesdk and tdesvn pkgs provide
> exactly same version of those .protocol files :D

AUR still doesn't support split packages, and split packages can't be
handled by the AUR wrappers. So this is really the worst ideas for AUR,
and should only be used for binary repos for now.

The better way is to create three single packages which depend on each
other.

Heiko


More information about the arch-general mailing list