How does this SLKBUILD thingie work?

General talk about packaging procedures and packages.

How does this SLKBUILD thingie work?

Postby Kristho » 22. Mar 2010, 23:20

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

Re: How does this SLKBUILD thingie work?

Postby gapan » 22. Mar 2010, 23:49

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

Re: How does this SLKBUILD thingie work?

Postby Kristho » 23. Mar 2010, 00:18

Thanks, I think I have my first package ready :)
Kristho
 
Posts: 43
Joined: 21. Mar 2010, 17:29
Location: Jutland, Denmark


Return to General