How does this SLKBUILD thingie work?

General talk about packaging procedures and packages.
Post Reply
Kristho
Posts: 43
Joined: 21. Mar 2010, 17:29
Location: Jutland, Denmark
Contact:

How does this SLKBUILD thingie work?

Post 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
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: How does this SLKBUILD thingie work?

Post 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.
Image
Image
Kristho
Posts: 43
Joined: 21. Mar 2010, 17:29
Location: Jutland, Denmark
Contact:

Re: How does this SLKBUILD thingie work?

Post by Kristho »

Thanks, I think I have my first package ready :)
Post Reply