diff --git a/srcpkgs/python-netifaces/template b/srcpkgs/python-netifaces/template deleted file mode 100644 index 4bca5a924ad..00000000000 --- a/srcpkgs/python-netifaces/template +++ /dev/null @@ -1,27 +0,0 @@ -# Template file for 'python-netifaces' -pkgname=python-netifaces -version=0.10.9 -revision=3 -wrksrc="netifaces-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -makedepends="python-devel python3-devel" -short_desc="Python2 library to retrieve information about network interfaces" -maintainer="Alessio Sergi " -license="MIT" -homepage="https://github.com/al45tair/netifaces" -distfiles="${PYPI_SITE}/n/netifaces/netifaces-${version}.tar.gz" -checksum=2dee9ffdd16292878336a58d04a20f0ffe95555465fee7c9bd23b3490ef2abf3 - -post_install() { - sed -n '/Copyright/,/SOFTWARE\./p' PKG-INFO >LICENSE - vlicense LICENSE -} - -python3-netifaces_package() { - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-netifaces b/srcpkgs/python3-netifaces deleted file mode 120000 index 7fd5df6f422..00000000000 --- a/srcpkgs/python3-netifaces +++ /dev/null @@ -1 +0,0 @@ -python-netifaces \ No newline at end of file diff --git a/srcpkgs/python3-netifaces/template b/srcpkgs/python3-netifaces/template new file mode 100644 index 00000000000..9bfd719ebb6 --- /dev/null +++ b/srcpkgs/python3-netifaces/template @@ -0,0 +1,20 @@ +# Template file for 'python3-netifaces' +pkgname=python3-netifaces +version=0.10.9 +revision=4 +wrksrc="netifaces-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-devel" +short_desc="Python3 library to retrieve information about network interfaces" +maintainer="Alessio Sergi " +license="MIT" +homepage="https://github.com/al45tair/netifaces" +distfiles="${PYPI_SITE}/n/netifaces/netifaces-${version}.tar.gz" +checksum=2dee9ffdd16292878336a58d04a20f0ffe95555465fee7c9bd23b3490ef2abf3 +conflicts="python-netifaces>=0" + +post_install() { + sed -n '/Copyright/,/SOFTWARE\./p' PKG-INFO >LICENSE + vlicense LICENSE +}