You are not logged in.
howdy guys,
I made a package using the PKGBUILD of gtk-server Mr. Green has in the AUR (thanks Mr. Green!) the resulting package works fine, and I now have gtk-server up and running.
there is a new version of gtk-server which allows it to be compiled as a library, so I edited the PKGBUILD with the new version number, and one extra configure option:
--enable-library
The package is generated, but in the PKG directory, under usr/, there is a script called bin. Guess why the package fails to install?
Anyway, I'm not sure how to fix it. Any ideas?
Offline
one way to fix it is to rename the script, but it should go *i* the /usr/bin directory of course. Posting the PKGBUILD would help
Dusty
Offline
Oh yeah. that would be helpful, wouldn't it? Here it is. All I did is change the version number, and add "--enable-library." The former script worked fine.
# Gtk-server
# by Mr Green
# With help from Snowman 8)
#
#
pkgname=gtk-server
pkgver=2.0.9
pkgrel=1
pkgdesc="The GTK-server enables access to GUI's (GTK widget set) for shell scripts and interpreted programming languages."
url=""
license=""
depends=('gtk2' 'libffi')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)build() {
cd $startdir/src/$pkgname-$pkgver
./configure --with-gtk2 --enable-library
make || return 1
make PREFIX=$startdir/pkg/usr install
Offline
Here's the problem:
/bin/install -c kill-gtk-server.sh /home/tomk/builds/gtk-server/pkg/usr/bin
The kill-gtk-server.sh script should be installed in $startdir/pkg/usr/bin, but make install does not create the directory first, so the script is installed as $startdir/pkg/usr/bin. The fix - throw in
mkdir -p $startdir/pkg/usr/bin
at the start of build().
<edit>
Yup, as I thought - turning on the library config option prevents the creation of ../bin, but make install still wants to install the kill script. Do you need the kill script if you're using it as a library?
<edit - again >
And you should flag the AUR one out-of-date - it's 2.0.4, but you've got 2.0.9.
Offline
that did it, thanks. I also flagged the PKGBUILD in the AUR out of date.
Offline