updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / pybtchat / PKGBUILD
blobae6e29ab1558f485ba8263501ce3479454823b6d
1 # Maintainer: Kosava <kosava@archlinux.us>
3 pkgname=pybtchat
4 pkgver=0.2.3
5 pkgrel=2
6 pkgdesc="pybtchat is a simple chat program (one to one) that uses bluetooth technology"
7 arch=('any') 
8 url="http://pybtchat.sourceforge.net/"
9 license=('GPL')
10 depends=('python-pybluez' 'python-notify' 'pygtk')
11 makedepends=('python2')
12 source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz)
13 md5sums=('aed4034943f4aea16731f48e5d9957c8')
15 build(){
16   cd ${srcdir}/${pkgname}
17   install -dm755 ${pkgdir}/usr/share/${pkgname}/{pics,xml}
18   install -dm755 ${pkgdir}/usr/bin
19   install -m644 xml/${pkgname}.xml ${pkgdir}/usr/share/${pkgname}/xml
20   install -m644 pics/icon.png ${pkgdir}/usr/share/${pkgname}/pics
21   install -m644 ${pkgname}.py ${pkgdir}/usr/share/${pkgname}
23   #install wrapper
24   echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
25   echo "cd /usr/share/${pkgname}" >> ${pkgdir}/usr/bin/${pkgname}
26   echo "python2 ${pkgname}.py" >> ${pkgdir}/usr/bin/${pkgname}
27   chmod 755 ${pkgdir}/usr/bin/${pkgname}