You are not logged in.

#1 2006-05-17 11:19:38

DeepThoughts
Member
From: Norther part of Sweden (Piteå)
Registered: 2006-04-11
Posts: 44
Website

Problems creating PKBUILD

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

#2 2006-05-17 11:36:59

DeepThoughts
Member
From: Norther part of Sweden (Piteå)
Registered: 2006-04-11
Posts: 44
Website

Re: Problems creating PKBUILD

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. sad


Stefan Nitsche
stefan_at_nitsche_dot_se

Offline

#3 2006-05-17 11:47:42

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Problems creating PKBUILD

DeepThoughts wrote:

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. sad

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

#4 2006-05-18 02:24:32

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Problems creating PKBUILD

pressh wrote:
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

#5 2006-05-18 02:45:21

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: Problems creating PKBUILD

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

Board footer

Powered by FluxBB