summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormike22082017-03-03 14:15:21 +0100
committermike22082017-03-03 14:15:21 +0100
commit45f21b73dea0fb7f1f311f41cdc5552f3ddb169c (patch)
tree9862e440610f392ae04b7b3a4933ef421a9ff079 /PKGBUILD
parente137c8bd97e6e74ca91f6258262fd129dd6bee6d (diff)
downloadaur-python2-ovs.tar.gz
Changed format to build() and package()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index de58aacd20d..e02e42ee1fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,12 +16,14 @@ source=("${pkgbase}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
md5sums=('90c534ffe03736623e4d976a2e378615')
sha256sums=('e660f4aa9a7e3ec9da525a51ab9d654c651f7a2b16f297f18eeba9117db4625e')
-package_python2-ovs() {
+build() {
cd "$srcdir/ovs-${pkgver}"
./boot.sh
./configure --prefix="$pkgdir/usr" --localstatedir="$pkgdir/var" --sysconfdir="$pkgdir/etc"
make python/ovs/version.py
+}
+package() {
cd "$srcdir/ovs-${pkgver}/python"
python2 setup.py install --root="$pkgdir/" --optimize=1
}