[arch-commits] Commit in tftpy/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 06:17:05 UTC 2019


    Date: Monday, November 4, 2019 @ 06:17:04
  Author: felixonmars
Revision: 523352

archrelease: copy trunk to community-staging-any

Added:
  tftpy/repos/community-staging-any/
  tftpy/repos/community-staging-any/PKGBUILD
    (from rev 523351, tftpy/trunk/PKGBUILD)

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

Copied: tftpy/repos/community-staging-any/PKGBUILD (from rev 523351, tftpy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 06:17:04 UTC (rev 523352)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=tftpy
+pkgname=('python-tftpy')
+pkgver=0.8.0
+pkgrel=2
+pkgdesc='Pure Python TFTP library'
+url='https://github.com/msoulier/tftpy'
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python-setuptools')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/msoulier/tftpy/archive/${pkgver}.tar.gz)
+sha256sums=('890bf36454355aa06bb267b317b37ffa6ea1d85a95b873b896befd20a61a3548')
+sha512sums=('4501c21d923348799bf6f4f2dd0b476171d99d993fae72c6560c23f091460602db774e3d18c2c62c55e3bae05669499a660a221e3db20151d5925431ecb4a224')
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+  make test PY=python
+}
+
+package_python-tftpy() {
+  depends=('python')
+  cd ${pkgbase}-${pkgver}
+  python 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}"
+  mv "${pkgdir}/usr/bin/tftpy_client"{.py,}
+  mv "${pkgdir}/usr/bin/tftpy_server"{.py,}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list