|
pkgbuild如下:
# Maintainer: jotapesan <lord_jotape@yahoo.com.ar>
pkgname=kiba-dock-cvs
pkgver=20070125
pkgrel=1
pkgdesc="kiba-dock is a dock with physics. The author describes kibadock like silly dock demo of akamaru."
url="http://www.kiba-dock.org/"
license=
depends=(gconf libglade librsvg gnome-python gnome-python-extras)
replaces=()
conflicts=()
makedepends=('cvs')
options=('NOSTRIP')
source=()
md5sums=()
_cvsroot=":pserver:anonymous@metascape.afraid.org:/cvsroot"
_cvsmod="kiba-dock"
build() {
cd $startdir/src
msg "Connecting to metascape.afraid.org CVS server...."
cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
cd $_cvsmod
msg "CVS checkout done or server timeout"
msg "Starting make..."
cp -r ../$_cvsmod ../$_cvsmod-build
cd ../$_cvsmod-build
sed -i 's|AM_GCONF_SOURCE_2|#|' configure.in
./autogen.sh
make || return 1
make install-schemas
make DESTDIR=$startdir/pkg install || return 1
mv $startdir/pkg/usr/local/lib/* $startdir/pkg/usr/lib/
mv $startdir/pkg/usr/local/etc/gconf $startdir/pkg/etc/
mv $startdir/pkg/usr/local/bin/* $startdir/pkg/usr/bin/
mv $startdir/pkg/usr/local/share/* $startdir/pkg/usr/share/
rm -r $startdir/src/$_cvsmod-build
}
失败提示:
autoreconf: running: /usr/bin/autoconf
configure.in:74: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed. Aborting...
进入源码目录,执行./autogen.sh,还是失败:
./configure: line 22959: syntax error near unexpected token `KIBA_DOCK,'
./configure: line 22959: `PKG_CHECK_MODULES(KIBA_DOCK, "$KIBA_DOCK_REQUIRES")'
何解呢?相关的依赖我都解决了。 |
|