summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
author0x9fff002020-06-17 18:32:23 +0200
committer0x9fff002020-06-17 18:32:23 +0200
commit38a2997284d7c37e43f5f2f613e868c3fb96c226 (patch)
tree1e0d8968468ed595a0dc7ddf5f74d37dea3f67fb /PKGBUILD
parent0692ebdab1da5088ba52c84347c66a047832f341 (diff)
downloadaur-38a2997284d7c37e43f5f2f613e868c3fb96c226.tar.gz
split and disown python2-flask-apscheduler
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 9 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7b37456bcda..c09b8602a30 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,15 +4,15 @@
_pipname=Flask-APScheduler
_reponame=${_pipname,,}
-pkgbase=python-$_reponame
-pkgname=("python-$_reponame" "python2-$_reponame")
+pkgname=python-$_reponame
pkgver=1.11.0
-pkgrel=2
+pkgrel=3
pkgdesc='Adds APScheduler support to Flask'
arch=('any')
url="https://github.com/viniciuschiele/$_reponame"
license=('Apache')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-apscheduler' 'python2-apscheduler' 'python-dateutil' 'python2-dateutil' 'python-flask' 'python2-flask')
+depends=('python' 'python-apscheduler' 'python-dateutil' 'python-flask')
+makedepends=('python-setuptools')
source=("$url/releases/download/$pkgver/$_pipname-$pkgver.tar.gz"
'0001-Don-t-install-LICENSE-file.patch')
sha256sums=('7911d66e449f412d92a1a6c524217f44f4c40a5c92148c60d5189c6c402f87d0'
@@ -20,32 +20,20 @@ sha256sums=('7911d66e449f412d92a1a6c524217f44f4c40a5c92148c60d5189c6c402f87d0'
prepare() {
cd "$_pipname-$pkgver"
+
for p in "$srcdir"/*.patch; do
patch -Np1 -i "$p"
done
- cd ..
-
- cp -a $_pipname-$pkgver{,-py2}
}
build() {
- cd "$srcdir/$_pipname-$pkgver"
- python setup.py build
+ cd "$_pipname-$pkgver"
- cd "$srcdir/$_pipname-$pkgver-py2"
- python2 setup.py build
+ python setup.py build
}
-package_python-flask-apscheduler() {
- depends=('python' 'python-apscheduler' 'python-dateutil' 'python-flask')
-
+package() {
cd "$_pipname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
-}
-package_python2-flask-apscheduler() {
- depends=('python2' 'python2-apscheduler' 'python2-dateutil' 'python2-flask')
-
- cd "$_pipname-$pkgver-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}