[arch-commits] Commit in python-ipy/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 04:06:21 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:06:20
Author: foutrelis
Revision: 748483
archrelease: copy trunk to community-staging-any
Added:
python-ipy/repos/community-staging-any/
python-ipy/repos/community-staging-any/PKGBUILD
(from rev 748480, python-ipy/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-ipy/repos/community-staging-any/PKGBUILD (from rev 748480, python-ipy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:06:20 UTC (rev 748483)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+
+_name=IPy
+pkgname=python-ipy
+pkgver=1.00
+pkgrel=4
+pkgdesc="Class and tools for handling of IPv4 and IPv6 addresses and networks"
+arch=('any')
+url="https://github.com/autocracy/python-ipy"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('94a8f26cad0d966fdf8d4e57284eadf4cfde88515af6f5aafc8f9597eb0758324b876039d1a121021ba1ac26be2e2ffa89a3f5803dddefdee03fdb5d65b07a81')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ py.test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 {AUTHORS,ChangeLog,README.rst} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list