You are not logged in.
Pages: 1
I seem to be really bad at making PKGBUILDs which is anyoing as h**l. Right now I'm trying to make a PKGBUILD for the Rezlooks gtk-engine (found here: http://www.gnome-look.org/content/show. … ent=39179) and it's not going well... I thought it was clever to base it on the Clearlooks PKGBUILD that's in the AUR but apparently it's not that easy...
pkgname=rezlooks
pkgver=0.4
pkgrel=1
pkgdesc="Rezlooks is a gtk theme engine based on the cairo-enabled CVS clearlooks engine code."
url="http://www.gnome-look.org/content/show.php?content=39179"
depends=('gtk2' 'cairo' 'x-server')
makedepends=('')
source=('http://www.gnome-look.org/content/files/39179-rezlooks-0.4.tar.gz')
md5sums=('fb62a0800708baf76de1ba08e5738527')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --enable-animation
make || return 1
make DESTDIR=$startdir/pkg install
}
The engine appears in the list of GTK themes (running Xfce) but when chosen just shows the default (ugly) GTK theme. I do get a warning when creating the package could that be the problem?
test -z "/usr/lib/gtk-2.0/2.4.0/engines" || mkdir -p -- "/var/abs/local/rezlooks/pkg/usr/lib/gtk-2.0/2.4.0/engines"
/bin/sh ./libtool --mode=install /bin/install -c 'librezlooks.la' '/var/abs/local/rezlooks/pkg/usr/lib/gtk-2.0/2.4.0/engines/librezlooks.la'
/bin/install -c .libs/librezlooks.so /var/abs/local/rezlooks/pkg/usr/lib/gtk-2.0/2.4.0/engines/librezlooks.so
/bin/install -c .libs/librezlooks.lai /var/abs/local/rezlooks/pkg/usr/lib/gtk-2.0/2.4.0/engines/librezlooks.la
libtool: install: warning: remember to run `libtool --finish /usr/lib/gtk-2.0/2.4.0/engines'
make[1]: Leaving directory `/var/abs/local/rezlooks/src/rezlooks-0.4'
Any tips at all are very welcome.
Stefan Nitsche
stefan_at_nitsche_dot_se
Offline
I've got an idea... Why don't I think before I post?
Everything works fine when I choose a theme thats designed for the rezlooks enging... Man do I fell dumb...
But I'm having problems with the source command in the PKGBUILD. I've done it like this:
source=('http://www.gnome-look.org/content/files/39179-rezlooks-0.4.tar.gz')
But shouldn't it work with it written like this:
source=('http://www.gnome-look.org/content/files/39179-$pkgname-$pkgver.tar.gz')
Because that doesn't work for me.
Stefan Nitsche
stefan_at_nitsche_dot_se
Offline
But shouldn't it work with it written like this:
source=('http://www.gnome-look.org/content/files/39179-$pkgname-$pkgver.tar.gz')
Because that doesn't work for me.
almost correct. You should leave out the quotes.
pkgname=rezlooks
_pkgname=39179-rezlooks
source=(http://www.gnome-look.org/content/files/$_pkgname-$pkgver.tar.gz)
Offline
pkgname=rezlooks _pkgname=39179-rezlooks source=(http://www.gnome-look.org/content/files/$_pkgname-$pkgver.tar.gz)
You should only create new variables in PKGBUILD when it's really necessary.
@DeepThoughts. Use:
source=(http://www.gnome-look.org/content/files/39179-$pkgname-$pkgver.tar.gz)
Offline
For future reference, the reason it didn't work with the quotes was because (in most scripting languages) strings enclosed in single quotes aren't parsed for variables. Try with double quotes, that will work fine.
Offline
Pages: 1