diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 16 | ||||
-rw-r--r-- | PKGBUILD | 27 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..39db44164b6c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python2-iso8601 + pkgdesc = Simple module to parse ISO 8601 dates (legacy Python 2 version) + pkgver = 0.1.16 + pkgrel = 1 + url = https://pypi.org/project/iso8601/0.1.16/ + arch = any + license = MIT + makedepends = python2-setuptools + depends = python2 + source = https://files.pythonhosted.org/packages/source/i/iso8601/iso8601-0.1.16.tar.gz + sha256sums = 36532f77cc800594e8f16641edae7f1baf7932f05d8e508545b95fc53c6dc85b + +pkgname = python2-iso8601 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6696e5c62eee --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +*.tar +*.tar.* +*.rpm +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* + +*/ +*.orig +*.bak +*.backup diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..197d6f99c0aa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > +# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=python2-iso8601 +_name="${pkgname#python2-}" +pkgver=0.1.16 +pkgrel=1 +pkgdesc='Simple module to parse ISO 8601 dates (legacy Python 2 version)' +arch=('any') +url="https://pypi.org/project/${_name}/${pkgver}/" +license=('MIT') +depends=('python2') +makedepends=('python2-setuptools') +_tarname="${_name}-${pkgver}" +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_tarname}.tar.gz") +sha256sums=('36532f77cc800594e8f16641edae7f1baf7932f05d8e508545b95fc53c6dc85b') + +build() { + cd "${_tarname}" + python2 setup.py build +} + +package() { + cd "${_tarname}" + python2 setup.py install --skip-build --optimize=1 --root="${pkgdir}" + install -Dm 644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |