diff options
author | BigfootACA | 2021-03-18 15:28:00 +0800 |
---|---|---|
committer | BigfootACA | 2021-03-18 15:28:00 +0800 |
commit | 1cbd29056ccf131e4c456b469ee09ae1c24ded1b (patch) | |
tree | f481cca9f02505b90a02ba8bb53deea7da09dbd4 | |
download | aur-1cbd29056ccf131e4c456b469ee09ae1c24ded1b.tar.gz |
upload to github
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 10 | ||||
-rw-r--r-- | PKGBUILD | 23 |
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..48f5a215d5ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python-ovs-wrapper + pkgdesc = Python Open vSwitch library wrapper + pkgver = 2.14.2 + pkgrel = 1 + url = http://www.openvswitch.org/ + arch = any + license = Apache + makedepends = python-setuptools + depends = openvswitch + options = !emptydirs + +pkgname = python-ovs-wrapper + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..fcaabd513b1a --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +pkg +src +*.tar +*.gz +*.xz +*.zst +*.zip +*.lz4 +*.lzo +*.bz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aa6b9ad7d245 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: BigfootACA <bigfoot@classfun.cn> + +_pyname=ovs-wrapper +pkgname=python-$_pyname +pkgver=2.14.2 +pkgrel=1 +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.9/site-packages" + local _ovsdir="/usr/share/openvswitch/python" + mkdir -p "${_pydir}" + cd "${_pydir}" + ln -sf "${_ovsdir}/ovs" "${_pydir}" + ln -sf "${_ovsdir}/ovstest" "${_pydir}" +} |