summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 894350df564592b5feea9e121d82a604b7d297fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: BigfootACA <bigfoot@classfun.cn>

_pyname=ovs-wrapper
pkgname=python-$_pyname
pkgver=2.14.2
pkgrel=2
pkgdesc="Python Open vSwitch library wrapper"
arch=(any)
url="http://www.openvswitch.org/"
license=(Apache)
depends=(openvswitch)
makedepends=(python-setuptools)
options=(!emptydirs)
source=()

package(){
	local _pydir="$pkgdir/usr/lib/python3.10/site-packages"
	local _ovsdir="/usr/share/openvswitch/python"
	mkdir -p "${_pydir}"
	cd "${_pydir}"
	ln -sf "${_ovsdir}/ovs" "${_pydir}"
	ln -sf "${_ovsdir}/ovstest" "${_pydir}"
}