updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-loic / PKGBUILD
blob1b60f03a739fcc2c8c2e3429272874280f952717
1 # Contributor: wido <widowild [at] myopera [dot] com>
3 pkgname=python-loic
4 _pkgname=pythonLOIC
5 pkgver=2.6.2
6 pkgrel=3
7 pkgdesc="Python low orbit ion cannon (loic)"
8 arch=('any')
9 url="http://code.google.com/p/pythonloic/"
10 license=('CUSTOM')
11 depends=('python' 'python-irclib' 'scapy')
12 makedepends=()
13 optdepends=()
14 source=(http://pythonloic.googlecode.com/files/${_pkgname}_${pkgver}.zip)
15 md5sums=('92532e7c55df0c9c0b57bdd9db84085d')
17 build() {
18     true
21 package() {
22     cd ${srcdir}/
23     install -d ${pkgdir}/opt/${pkgname}
24     cp ${srcdir}/${_pkgname}${pkgver}/*.py ${pkgdir}/opt/${pkgname}
26     # Patch
27     #sed -i 's:'ubuntu':'archlinux':' ${pkgdir}/opt/${pkgname}/pythonLoic${pkgver}_python3.py
29     #Launcher
31     install -d ${pkgdir}/usr/bin/
32     echo "#!/bin/bash
33     cd /opt/python-loic
34     python ./pythonLoic${pkgver}_python3.py" > ${pkgdir}/usr/bin/${pkgname}
36     chmod 755 ${pkgdir}/usr/bin/${pkgname}