summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f99aad4b93bd2714be176b5c852188e04a7d7dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Steven Honeyman <stevenhoneyman at gmail com>
 
pkgname=obkey-git
pkgver=1.0.47.gcf99076
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/obkey"
	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/
}