Caffeine

Here you can post links to your contributed packages.
Post Reply
User avatar
ray
Posts: 87
Joined: 20. Mar 2010, 10:28
Location: United Kingdom

Caffeine

Post 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
Last edited by ray on 16. Sep 2010, 15:05, edited 2 times in total.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Caffeine

Post 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.
Image
Image
User avatar
ray
Posts: 87
Joined: 20. Mar 2010, 10:28
Location: United Kingdom

Re: Caffeine

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

Re: Caffeine

Post by gapan »

I meant in general. Thanks.
Image
Image
Post Reply