# Maintainer: Steven Honeyman <stevenhoneyman at gmail com>
_pkgname=obkey
pkgname=$_pkgname-git
pkgver=1.0.r11.gf599e29
pkgrel=1
pkgdesc="Openbox Key Editor"
arch=('any')
url="https://code.google.com/p/obkey/"
license=('GPL2')
depends=('python2' 'python2-gobject')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+https://github.com/stevenhoneyman/obkey.git")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
package() {
cd "$_pkgname"
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/"
}
# vim:set ts=2 sw=2 et: