what about something like this? in short, after make, the install target is called manually, so that you don't have a to maintain the full list of files for each package. of course the subgroups and subarchs variables contains code duplications, but that can be fixed later (see the OOo pkg) diff -rN -u old-frugalware-current/source/kde/kdeadmin/FrugalBuild new-frugalware-current/source/kde/kdeadmin/FrugalBuild --- old-frugalware-current/source/kde/kdeadmin/FrugalBuild 2006-02-25 02:40:20.000000000 +0100 +++ new-frugalware-current/source/kde/kdeadmin/FrugalBuild 2006-02-25 02:42:03.000000000 +0100 @@ -2,17 +2,50 @@ # Compiling Time: 0.42 SBU # Maintainer: crazy -pkgname=kdeadmin +pkgname=kdeadmin-docs pkgver=3.5.1 pkgrel=1 -pkgdesc="KDE Administration Programs." +pkgdesc="Documentation for KDE Administration Programs." groups=('kde' 'kde-core') archs=('i686' 'x86_64') depends=('kdebase>=3.5.1') sha1sums=('2197e764a806e93a8f593717694d999483a92bfd') Finclude kde +subpkgs=('kcron' 'kdat' 'kfile-plugins' 'knetworkconf' 'kpackage' 'ksysv' 'kuser') +subdescs=('Editor for the cron command scheduler.' 'Tape backup tool.' 'Make Konquerer display additional info on about *.dep and *.rpm files.' 'A KDE control Center Module to confiure Network settings.' 'Manager for DEB, RPM and similar software packages.' 'An editor for System V startup schemes.' 'An user manager.') +subdepends=('' '' '' '' '' '' '') #fixme +subgroups=('kde kde-core kdeadmin' 'kde kde-core kdeadmin' 'kde kde-core kdeadmin' 'kde kde-core kdeadmin' 'kde kde-core kdeadmin' 'kde kde-core kdeadmin' 'kde kde-core kdeadmin') +subarchs=('i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64' 'i686 x86_64') + Fconfopts="$Fconfopts --with-shadow \ --without-rpm \ --enable-new-ldflags" +build() +{ + # we need that because KDE add some -O2' twice we already have it in our {$CXX,$C}{FLAGS} + Fcd `echo $pkgname|sed 's/-docs$//'`-$pkgver + for i in `find . -iname configure` + do + Fsed '-O2' '' $i + done + + Fmake CXXFLAGS="$CXXFLAGS -Wno-deprecated" \ + --disable-dependency-tracking \ + --disable-debug \ + --with-gnu-ld \ + --enable-gcc-hidden-visibility \ + --enable-new-ldflags \ + --with-shadow + for i in ${subpkgs[@]} + do + cd $i + make DESTDIR=$Fdestdir install || return 1 + Fsplit $i /usr + cd .. + done + cd doc + Fmakeinstall +} + # optimalization OK