[arch-general] Need help understanding meta-PKGBUILDs

David C. Rankin drankinatty at suddenlinkmail.com
Wed Feb 2 23:30:25 EST 2011

On 02/02/2011 02:52 PM, "Jérôme M. Berger" wrote:
>> I don't see why you need meta packages; groups should do fine.  I
>> > think the only reason that Arch's meta packages exist is to provide an
>> > upgrade path from the pre-splitpkg KDE days.
>> > 
> 	Except that when you install a group, if a package gets added to
> the group later it will not be automatically installed when you
> upgrade. With a meta-package it will.

Tavian, Thomas, Jérôme,

  Thank you. This information is helpful. Currently there are two groups:

trinity-bld  (for the build dependencies that are not part of Trinity)
trinity      (for the trinity modules -- eg. trinity-art, trinity-kdelibs)

  The current module pkgbuilds are looking similar to this (kdelibs):

getsvnrev() {
  msg "Determining SVN revision for $pkgname..."
  [[ -d .svn ]] && echo $(svnversion .) || echo 9999

arch=('i686' 'x86_64')
pkgdesc="Trinity - kdelibs"
depends=('qt3' 'pyqt3' 'python2-sip' 'pykde3' 'tqtinterface' 'trinity-arts')
makedepends=('pkgconfig' 'cmake' 'autoconf')

build() {
  msg "Configuring autotools and Creating Makefile.common"
  cd ${startdir}
  cp -Rp /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
  cp -Rp /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
  make -f admin/Makefile.common

  # set --enable-closure configure option if needed (not needed for kdelibs)
  ./configure --prefix=${trinity_prefix} \
    --includedir=${trinity_prefix}/include/kde \
    --mandir=${trinity_prefix}/share/man \
    --infodir=${trinity_prefix}/share/info \
    --with-extra-libs=${trinity_prefix}/lib \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --libexecdir=${trinity_prefix}/lib/kdebase-kde3 \
    --with-qt-dir=/opt/qt \
    --with-qt-includes=/opt/qt/include \
    --with-qt-libraries=/opt/qt/lib \
    --with-extra-includes=/opt/qt/include/tqt \

  cd ${srcdir}
  cmake ../ \
    -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
    -DWITH_QT3=ON \

package() {
  msg "Packaging - $pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install

  As posted in the original thread, I have modeled meta-PKGBUILDs on the kde4
scripts, but don't really understand how they fit into the overall picture.
Since we are still slogging through the actual PKGBUILDs for the trinity
modules, we will have plenty of time to think about the meta-PKGBUILDs.

  Let me know if there is something I need to add to the basic PKGBUILD layout
to make them more compatible with a meta setup. (better to add now than have to
go back and edit all of them later)

David C. Rankin, J.D.,P.E.

More information about the arch-general mailing list