summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8dca7c3bc946e255524c4b4c0e951cf7e70d049 (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
# Maintainer: Matthew Ellison <matt+aur@arroyonetworks>
# Contributor: Ivan Cai <caizixian@users.noreply.github.com>

pkgname=python-iptables 
pkgver=0.12.0
pkgrel=1
pkgdesc='Python bindings for iptables'
arch=('x86_64' 'i686')
url='https://github.com/ldx/python-iptables'
license=('Apache')
groups=()
depends=('python' 'iptables')
makedepends=('python-setuptools')
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('9815fd5ba780fd14b5f8cf8a93e007c0e603019738813a806e37553cd72e4c33')

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python setup.py check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1
}