updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / tftpgui / PKGBUILD
blob443a617d67fc0540fb9fd62e88402cf0a2a1b915
1 # Contributor: Vlatko Kosturjak <kost@linux.hr>
3 pkgname=tftpgui
4 pkgver=1.1
5 pkgrel=1
6 pkgdesc="graphical interactive TFTP server written in Python"
7 arch=('any')
8 url="http://code.google.com/p/tftpgui/"
9 license=('GPL')
10 depends=('python2' 'tk')
11 makedepends=('')
12 _sourcedir=('tftpgui_1_1')
13 _sourcefile=("$_sourcedir.tar")
14 source=("http://tftpgui.googlecode.com/files/$_sourcefile")
15 md5sums=('4fdaf5b4c46eb2beff010448bd52a8a7')
17 build() {
18   mkdir -p $pkgdir/usr/{bin,src}
19   cd $pkgdir/usr/src
20   tar xf $startdir/$_sourcefile # && rm $startdir/$_sourcefile
21   ln -sf $_sourcedir $pkgname
22   # mkdir $pkgname/scans
24   cd $pkgdir/usr/bin
25   echo '#!/bin/sh' > $pkgname
26   echo "cd  /usr/src/$pkgname && python2 tftpgui.py$*" >> $pkgname
27   chmod +x $pkgdir/usr/bin/$pkgname
28