Page 1 of 1

Caffeine

Posted: 15. Sep 2010, 18:20
by ray
Here's my first attempt at a slkbuild for caffeine. Comments please? :)

Code: Select all

#Contributor: ray <rayraven@gmail.com>

#Mandatory
pkgname=caffeine
pkgver=1.0.1
pkgrel=1ry
arch=noarch
source=("http://launchpad.net/$pkgname/1.0/$pkgver/+download/caffeine-1.0.1.tar.gz")

#Optional
docs=('readme', 'version', 'copying', 'changelog')
url="http://launchpad.net/caffeine"
options=('noautodotnew')
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Caffeine (Display Inhibitor)"
"Caffeine is a system applet that allows the user to temporarily" 
"inhibit both the screensaver and the sleep power saving mode,"
"simply by clicking on it. This could be useful for"
"example when watching long flash videos or playing certain"
"full screen games that dont inhibit the screensaver by themselves."
)

build() {
  cd $startdir/src/caffeine-$pkgver
  python setup.py install --root=$startdir/pkg || return 1
}
Cheers,
ray

Re: Caffeine

Posted: 15. Sep 2010, 18:24
by gapan
The slack-desc is wrong. The 1st line should be like:

Code: Select all

pkgname (short description)
and then all other lines should follow with a more detailed description.

Mentioning the dependencies would be nice too.

Re: Caffeine

Posted: 15. Sep 2010, 18:28
by ray
@gapan,

I've edited the slack-desc, is there a place where i can mention the deps in the slkbuild?
Or do you just mean in general.

These are the deps for caffeine in alphabetical order:
dbus-python
gnome-python
python
python-notify
python-xlib

Cheers,
ray

Re: Caffeine

Posted: 15. Sep 2010, 18:42
by gapan
I meant in general. Thanks.