#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=waf pkgver=1.5.18 zenver=66 pkgrel=1 arch=noarch source=("http://waf.googlecode.com/files/waf-$pkgver.tar.bz2" waf-1.5.12-libdir.patch) sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/ap/$pkgname docs=("README TODO ChangeLog demos utils") url=http://code.google.com/p/waf/ options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "waf (Python-based build system)" "Waf is a Python-based framework for configuring, compiling and" "installing applications. It derives from the concepts of other build" "tools such as Scons, Autotools, CMake or Ant." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 -i $startdir/src/waf-1.5.12-libdir.patch ./waf-light configure --prefix=/usr --nopyc --nopyo || return 1 ./waf-light --make-waf --strip || return 1 ./waf install --yes -f --destdir=$startdir/pkg || return 1 # force generation of .waf.admin files # this is fugly. #cd $startdir/pkg #$startdir/pkg/usr/bin/waf >& /dev/null # set the right permissions chown -R root:root $startdir/pkg/usr/* mkdir -p $startdir/pkg/etc/bash_completion.d cp $startdir/src/$pkgname-$pkgver/utils/waf-completion.bash $startdir/pkg/etc/bash_completion.d/waf mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp -r $startdir/src/$pkgname-$pkgver/demos $startdir/pkg/usr/doc/$pkgname-$pkgver cp -r $startdir/src/$pkgname-$pkgver/utils $startdir/pkg/usr/doc/$pkgname-$pkgver }