Page 1 of 1

How does this SLKBUILD thingie work?

Posted: 22. Mar 2010, 23:20
by Kristho
Hi,

Until now I have translated a lot of the Salix software - but now I want to make a couple of packages (I'll start with some gtk-engines).

I have made this file, called gtk-rezlooks-engine.SLKBUILD:

Code: Select all

#Maintainer: Kris Thomsen <lakristho@gmail.com>

#Mandatory
pkgname=gtk-rezlooks-engine
pkgver=0.6
pkgrel=1kt
arch=i486
source=("http://gnome-look.org/CONTENT/content-files/39179-rezlooks-0.6.tar.gz")
sourcetemplate=http://code-geek.baah.dk/packages/$pkgname/
#Optional
docs=('authors' 'copying' 'changelog' 'install' 'news' 'readme')
url="http://gnome-look.org/content/show.php?content=39179"
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gtk-rezlooks-engine (GTK2 engine)"
)

build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc
        make || return 1
        make DESTDIR=$startdir/pkg install
}

doinst() {
}
But when I run "slkbuild" in the dir I get this message:

Code: Select all

kris[Pakker]$ slkbuild
No SLKBUILD found in directory, see slkbuild --help
I have looked in the help, but don't understand what I do wrong. Can anybody help me getting started?

// Kris

Re: How does this SLKBUILD thingie work?

Posted: 22. Mar 2010, 23:49
by gapan
The filename needs to be SLKBUILD

Also it would be better if you used fakeroot to run slkbuild to build the package, like:

Code: Select all

fakeroot slkbuild -X
it will save you from a lot of potential trouble.

Re: How does this SLKBUILD thingie work?

Posted: 23. Mar 2010, 00:18
by Kristho
Thanks, I think I have my first package ready :)