diff --git a/srcpkgs/python3-ntplib/template b/srcpkgs/python3-ntplib/template index 6a071761fab..811c9b25e9d 100644 --- a/srcpkgs/python3-ntplib/template +++ b/srcpkgs/python3-ntplib/template @@ -1,14 +1,21 @@ # Template file for 'python3-ntplib' pkgname=python3-ntplib -version=0.3.3 -revision=5 -build_style=python3-module +version=0.3.4 +revision=1 wrksrc="ntplib-${version}" +build_style=python3-module hostmakedepends="python3-setuptools" depends="python3" short_desc="Simple interface to query NTP servers from Python3" maintainer="cipr3s " license="MIT" homepage="http://code.google.com/archive/p/ntplib/" -distfiles="${PYPI_SITE}/n/ntplib/ntplib-${version}.tar.gz" -checksum="c4621b64d50be9461d9bd9a71ba0b4af06fbbf818bbd483752d95c1a4e273ede" +# They deleted all old releases, PYPI only has wheel package of 0.3.4 +# distfiles="${PYPI_SITE}/n/ntplib/ntplib-${version}.tar.gz" +distfiles="https://github.com/cf-natali/ntplib/archive/$version.tar.gz" +checksum=e822d7142b84d72022b9caaf00f6d2a7541f9822f41e1c133839db1d7957abbe + +post_install() { + sed -n '/The MIT License/,/SOFTWARE[.]$/p' ntplib.py >LICENSE + vlicense LICENSE +}