Skip to content

Instantly share code, notes, and snippets.

@pmattern
Created March 28, 2015 12:58
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 pmattern/9610e7580ed89d61c9e4 to your computer and use it in GitHub Desktop.
Save pmattern/9610e7580ed89d61c9e4 to your computer and use it in GitHub Desktop.
obkey: proposal regarding PKGBUILD of Arch Linux AUR package obkey-git
# Maintainer: Steven Honeyman <stevenhoneyman at gmail com>
pkgname=obkey-git
pkgver=1.0.11.gf599e29
pkgrel=1
pkgdesc="Openbox Key Editor - converted to PyGObject."
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/stevenhoneyman/obkey"
license=('GPL2')
depends=('python2' 'python2-gobject' 'gtk3')
makedepends=('git')
conflicts=('obkey')
provides=('obkey')
source=("git+https://github.com/stevenhoneyman/obkey.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --tags | sed "s/^v//;s/-/./g"
}
package() {
cd $srcdir/obkey
install -Dm755 obkey "$pkgdir"/usr/bin/obkey
install -Dm755 obkey_classes.py "$pkgdir"/usr/lib/python2.7/site-packages/obkey_classes.py
mkdir -p "$pkgdir"/usr/share/obkey/icons/
install -Dm644 icons/add_{child,sibling}.png "$pkgdir"/usr/share/obkey/icons/
mkdir -p "$pkgdir"/usr/share/applications/
install -Dm644 misc/obkey.desktop "$pkgdir"/usr/share/applications/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment