Skip to content

Instantly share code, notes, and snippets.

@sangyye
Created December 2, 2014 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangyye/0c1a61396729628817d7 to your computer and use it in GitHub Desktop.
Save sangyye/0c1a61396729628817d7 to your computer and use it in GitHub Desktop.
caffeine PKGBUILD
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname=caffeine
pkgver=0.0.1
pkgrel=1
pkgdesc="Simple open-source clone of the Caffeine Mac app for Ubuntu."
arch=('any')
url="https://github.com/kzar/caffeine"
license=('GPLv3')
depends=('python-gobject' 'libindicator-gtk3')
source=(https://github.com/kzar/caffeine/archive/$pkgver.tar.gz)
md5sums=('74070d9ae6595dc20d21370e2485f2f4')
package() {
cd "$srcdir/$pkgname-$pkgver"
install -c -d "$pkgdir/usr/bin"
install -c -d "$pkgdir/usr/src/caffeine"
install -c -m 755 caffeine.py "$pkgdir/usr/bin/caffeine.py"
install -c -m 644 cupfull.png "$pkgdir/usr/src/caffeine/"
install -c -m 644 cupempty.png "$pkgdir/usr/src/caffeine/"
install -c -m 644 caffeine.py.desktop "$pkgdir/usr/src/caffeine/"
}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment