[arch-commits] Commit in (tftpy tftpy/repos tftpy/trunk tftpy/trunk/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed May 9 18:37:16 UTC 2018


    Date: Wednesday, May 9, 2018 @ 18:37:15
  Author: anthraxx
Revision: 319902

addpkg: tftpy 0.6.2-2

Added:
  tftpy/
  tftpy/repos/
  tftpy/trunk/
  tftpy/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: tftpy/trunk/PKGBUILD
===================================================================
--- tftpy/trunk/PKGBUILD	                        (rev 0)
+++ tftpy/trunk/PKGBUILD	2018-05-09 18:37:15 UTC (rev 319902)
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=tftpy
+pkgname=('python2-tftpy')
+pkgver=0.6.2
+pkgrel=2
+pkgdesc='Pure Python TFTP library'
+url='https://github.com/msoulier/tftpy'
+arch=('any')
+license=('MIT')
+makedepends=('python2' 'python2-setuptools')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/msoulier/tftpy/archive/${pkgver}.tar.gz)
+sha256sums=('e3e47a787f6694265dcf94fe84cb69f483ee8143ec8cd557c9092484bc380f08')
+sha512sums=('1e5c31b2cf7df922fe0e5a266a80e867a6f59fbfe3aa8b66f9b2157ad6433bae81872c56faede0e9d8ed1320dd8ffadb3807d85924f2c1113ac9712534bfd48c')
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py build
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+  make test PY=python2
+}
+
+package_python2-tftpy() {
+  depends=('python2')
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README ChangeLog  -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list