8ddd61d984
[ci skip]
31 lines
832 B
Bash
31 lines
832 B
Bash
# Template file for 'python-iptools'
|
|
pkgname=python-iptools
|
|
version=0.7.0
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="iptools"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="Python2 utilites for manipulating IPv4 and IPv6 addresses"
|
|
maintainer="Andrew Mirghassemi <a.mirghassemi@live.com>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/bd808/python-iptools"
|
|
distfiles="${PYPI_SITE}/i/iptools/iptools-${version}.tar.gz"
|
|
checksum=118a4f638bb5fa0123df56fe3be703b112a689167539bcc194f8698ccdd9e2ea
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-iptools_package() {
|
|
archs=noarch
|
|
depends="python3"
|
|
pycompile_module="iptools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|