[skip-ci] python-monotonic: rename from python2 only and update to 1.4

This commit is contained in:
Jeff Huang 2018-03-20 03:34:22 +00:00
parent 414a267b80
commit 439436f035
2 changed files with 31 additions and 17 deletions

31
python-monotonic/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
# Contributions from Arch
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Kevin Houdebert <kevin@qwazerty.eu>
# Contributor: Erhan SAHIN <erhan@ssahin.net>
_pkgname=monotonic
pkgname=('python3-monotonic' 'python2-monotonic')
pkgver=1.4
pkgrel=1
url="https://pypi.python.org/pypi/monotonic"
license=('Apache')
arch=('any')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/atdt/monotonic/archive/$pkgver.tar.gz")
sha512sums=('2ac02b027a41f4635b62508a9a435ffd124d0f0708a93558a6702dc997837e602790ebf6af256434faa15989e9c4ad7d8a27be9fdcf04bb22b451991a7e8cc46')
package_python3-monotonic() {
pkgdesc="An implementation of time.monotonic() for Python 3."
depends=('python3')
cd "$srcdir/$_pkgname-$pkgver"
python3 setup.py install --root="$pkgdir" --optimize=1
}
package_python2-monotonic() {
pkgdesc="An implementation of time.monotonic() for Python 2."
depends=('python2')
cd "$srcdir/$_pkgname-$pkgver"
python2 setup.py install --root="$pkgdir" --optimize=1
}

View File

@ -1,17 +0,0 @@
pkgname=python2-monotonic
pkgver=1.0
pkgrel=1
pkgdesc="An implementation of time.monotonic() for Python 2 & < 3.3"
arch=('any')
url='http://pypi.python.org/pypi/monotonic'
license=('Apache')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/source/m/monotonic/monotonic-${pkgver}.tar.gz")
sha256sums=('47d7d045b3f2a08bffe683d761ef7f9131a2598db1cec7532a06720656cf719d')
package() {
cd monotonic-${pkgver}
python2 setup.py install --root="${pkgdir}" --optimize=1
}