[arch-commits] Commit in python-mtrpacket/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 17:01:06 UTC 2020
Date: Thursday, November 12, 2020 @ 17:01:04
Author: felixonmars
Revision: 752179
archrelease: copy trunk to community-staging-any
Added:
python-mtrpacket/repos/community-staging-any/
python-mtrpacket/repos/community-staging-any/PKGBUILD
(from rev 752178, python-mtrpacket/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-mtrpacket/repos/community-staging-any/PKGBUILD (from rev 752178, python-mtrpacket/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:01:04 UTC (rev 752179)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-mtrpacket
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Asynchronous network probes for Python"
+url="https://github.com/matt-kimball/mtr-packet-python"
+license=('MIT')
+arch=('any')
+depends=('mtr' 'python')
+makedepends=('python-setuptools')
+checkdepends=('gnu-netcat')
+source=("https://github.com/matt-kimball/mtr-packet-python/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('15d201256f0ab372f71fefab32a6836194a180aa45d1b0460716c9bcd5ebc51aa241bcb982613f81ccda2384bef0e97decfebbe94b19f3f4a9e6a3deda62f89b')
+
+build() {
+ cd mtr-packet-python-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd mtr-packet-python-$pkgver
+ ./test.sh
+}
+
+package() {
+ cd mtr-packet-python-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list