summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD25
2 files changed, 8 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6b7c9c916cb..ee24adfde5e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,15 @@
pkgbase = python-schedule
pkgdesc = Python job scheduling for humans.
pkgver = 1.1.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/dbader/schedule
arch = any
license = MIT
checkdepends = python-pytest
checkdepends = python-mock
- checkdepends = python2-pytest
- checkdepends = python2-mock
makedepends = python-setuptools
- makedepends = python2-setuptools
+ depends = python
source = https://files.pythonhosted.org/packages/source/s/schedule/schedule-1.1.0.tar.gz
sha512sums = bcfb6202659eba0a0613f68d8b06b9f2ffffce0444e231533932f72b01316b72674208a80418de54630d9b25bb80f1c202061672f7c40ca38020b19a0a51fc3f
pkgname = python-schedule
- depends = python
-
-pkgname = python2-schedule
- depends = python2
-
diff --git a/PKGBUILD b/PKGBUILD
index 49bceb276c4..0f98622e443 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,22 @@
# Maintainer: Donald Webster <fryfrog@gmail.com
# Contributor: Dylan Whichard <dylan@whichard.com>
-pkgname=('python-schedule' 'python2-schedule')
+pkgname='python-schedule'
_name=${pkgname#python-}
pkgver=1.1.0
-pkgrel=1
+pkgrel=2
pkgdesc='Python job scheduling for humans.'
arch=('any')
url="https://github.com/dbader/schedule"
license=('MIT')
-makedepends=('python-setuptools'
- 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
checkdepends=('python-pytest'
- 'python-mock'
- 'python2-pytest'
- 'python2-mock')
+ 'python-mock')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('bcfb6202659eba0a0613f68d8b06b9f2ffffce0444e231533932f72b01316b72674208a80418de54630d9b25bb80f1c202061672f7c40ca38020b19a0a51fc3f')
-prepare() {
- cp -a schedule-${pkgver}{,-py2}
-}
-
-package_python-schedule() {
- depends=('python')
+package() {
cd "${srcdir}/schedule-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
}
-
-package_python2-schedule() {
- depends=('python2')
- cd "${srcdir}/schedule-${pkgver}-py2"
- python2 setup.py install --root="${pkgdir}" --optimize=1
-}