diff options
author | Victrid | 2021-11-11 00:33:44 +0800 |
---|---|---|
committer | Victrid | 2021-11-11 00:33:44 +0800 |
commit | c7bdfaa4ad7ea5524e0d43055b7684b070b3fa9b (patch) | |
tree | 9edf0a29b01be494ba7be86547db31a2e70dfb7b /PKGBUILD | |
download | aur-c7bdfaa4ad7ea5524e0d43055b7684b070b3fa9b.tar.gz |
Initial post
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9f52141383ac --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Victrid <weihau.chiang@gmail.com> +_pkgname=ryu +pkgname=python-$_pkgname +pkgver=4.34 +pkgrel=1 +pkgdesc="Component-based Software-defined Networking Framework" +arch=('any') +url="https://ryu-sdn.org" +license=('APACHE') +depends=('python' 'python-eventlet' 'python-msgpack' 'python-netaddr' 'python-oslo-config' 'openvswitch' 'python-packaging' 'python-routes' 'python-six' 'python-tinyrpc' 'python-webob') +makedepends=('git' 'python-setuptools' 'python-pip') +source=("https://github.com/faucetsdn/ryu/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=("SKIP") + +build() { + cd "$srcdir/$_pkgname-$pkgver" + python setup.py build +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + + #Fix the strange /usr/etc + mv "$pkgdir/usr/etc" "$pkgdir/etc" +} + +# vim:set ts=2 sw=2 et: + |