summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD30
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..49b230d2bdc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = traffictoll-git
+ pkgdesc = NetLimiter-like traffic shaping for Linux
+ pkgver = r35.0add8b6
+ pkgrel = 1
+ url = https://github.com/cryzed/TrafficToll
+ arch = any
+ license = GPL3
+ makedepends = python-pip
+ makedepends = python-poetry
+ depends = python
+ depends = python-loguru
+ depends = python-psutil
+ depends = python-ruamel-yaml
+ conflicts = traffictoll
+ source = git+https://github.com/cryzed/TrafficToll.git
+ md5sums = SKIP
+
+pkgname = traffictoll-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fbe573d63b6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Michael Serajnik <ms dot mserajnik dot at>
+pkgname=traffictoll-git
+_pkgname=TrafficToll
+pkgver=r35.0add8b6
+pkgrel=1
+pkgdesc="NetLimiter-like traffic shaping for Linux"
+arch=('any')
+url="https://github.com/cryzed/${_pkgname}"
+license=('GPL3')
+depends=('python' 'python-loguru' 'python-psutil' 'python-ruamel-yaml')
+makedepends=('python-pip' 'python-poetry')
+conflicts=('traffictoll')
+source=("git+https://github.com/cryzed/${_pkgname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+
+ poetry build
+}
+
+package() {
+ INSTALL_PATH="${srcdir}/${_pkgname}/dist/${_pkgname}-*.whl"
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps --no-warn-script-location $INSTALL_PATH
+}