summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1f358740ec17158d71a8105d0552420031cfb75 (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
31
32
33
# Maintainer: Henry-Joseph Audéoud <h.audeoud at gmail dot com>

_pkgname='python-ebtables'
pkgname="${_pkgname}"
pkgver=0.2.0
pkgrel=1
pkgdesc='A simple Python binding for Ebtables'
arch=('any')
url='https://github.com/ldx/python-ebtables'
license=('GPL2')
depends=('python' 'python-cffi>=0.5.0' 'ebtables')
makedepends=('python-setuptools')
source=("https://github.com/ldx/${_pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('be4c50c78c4c932761cf0586fe755f20')

prepare() {
    patch "${srcdir}/${_pkgname}-${pkgver}"/ebtables.py ../ebtables.py_python2to3.patch
}

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python setup.py build
}

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

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