updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / pygmed / PKGBUILD
blobaaebcf024ff21f1bdef9b60a3296e59643bafac4
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=pygmed
4 pkgver=0.1
5 pkgrel=1
6 pkgdesc="A simple editor for ".desktop" files."
7 arch=(any)
8 url="http://sourceforge.net/projects/pygmed/"
9 license=('GPL')
10 depends=('wxpython')
11 install="$pkgname.install"
12 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
13         "$pkgname.desktop") # A .desktop file editor without a .desktop file
14 md5sums=('96428ecd869cdb104e0bc6074e2ab70e'
15          '40df8b3c1057b6191db68f1abc49af9b')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   # python2 fix
21   sed -i "s|\(bin/python\).*|\12|" `grep -Erl "bin/python" .`
23   python2 setup.py build
26 package() {
27   cd "$srcdir/$pkgname-$pkgver"
29   python2 setup.py install --root="$pkgdir/"
31   # desktop file
32   install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
35 # vim:set ts=2 sw=2 et: