summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
author0x9fff002019-11-09 14:16:39 +0100
committer0x9fff002019-11-09 14:18:35 +0100
commiteb67157c2fe5e4aae25a7a57496c3022fc717779 (patch)
treedc20bd99147c4b20bbbc868817ba58ff0693aba8 /PKGBUILD
parentc99adcea0f7df52624899f1c6cdf1310e91e78c1 (diff)
downloadaur-eb67157c2fe5e4aae25a7a57496c3022fc717779.tar.gz
1.11.0-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD53
1 files changed, 35 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 767f6439bc7..e3edd27b6a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,51 @@
-# First Linux Arch packager: Serge Victor <arch@random.re>
-# Current Packager: Christoph Stahl <christoph.stahl@uni-dortmund.de>
+# Maintainer: 0x9fff00 <0x9fff00+git@protonmail.ch>
+# Contributor: Christoph Stahl <christoph.stahl@uni-dortmund.de>
+# Contributor: Serge Victor <arch@random.re>
_pipname=Flask-APScheduler
-pkgbase=python-flask-apscheduler
-pkgname=('python2-flask-apscheduler' 'python-flask-apscheduler')
-pkgver=1.6.0
+_pkgname=flask-apscheduler
+pkgbase=python-$_pkgname
+pkgname=("python-$_pkgname" "python2-$_pkgname")
+pkgver=1.11.0
pkgrel=1
-pkgdesc="Adds APScheduler support to Flask"
+pkgdesc='Adds APScheduler support to Flask'
arch=('any')
-url="https://github.com/viniciuschiele/flask-apscheduler"
+url="https://github.com/viniciuschiele/$_pkgname"
license=('Apache')
-makedepends=('python2-setuptools' 'python-setuptools' 'python2-flask' 'python-flask' 'python2-apscheduler' 'python-apscheduler')
-source=("https://github.com/viniciuschiele/flask-apscheduler/releases/download/${pkgver}/${_pipname}-${pkgver}.tar.gz")
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-apscheduler' 'python2-apscheduler' 'python-dateutil' 'python2-dateutil' 'python-flask' 'python2-flask')
+source=("$url/releases/download/$pkgver/$_pipname-$pkgver.tar.gz"
+ '0001-Don-t-install-LICENSE-file.patch')
+sha256sums=('7911d66e449f412d92a1a6c524217f44f4c40a5c92148c60d5189c6c402f87d0'
+ '353a85fdcc9d8eee32fb7990155974eb30c8c79fe851a2fa6de700aaf59d8fb7')
prepare() {
- cp -R $_pipname-$pkgver python2-$_pipname-$pkgver
+ cd "$_pipname-$pkgver"
+ for p in "$srcdir"/*.patch; do
+ patch -Np1 -i "$p"
+ done
+ cd ..
+
+ cp -a $_pipname-$pkgver{,-py2}
}
-package_python2-flask-apscheduler() {
-depends=('python2-flask' 'python2-apscheduler')
+build() {
+ cd "$srcdir/$_pipname-$pkgver"
+ python setup.py build
- cd python2-$_pipname-$pkgver
- python2 setup.py install --root="$pkgdir/" --optimize=1
+ cd "$srcdir/$_pipname-$pkgver-py2"
+ python2 setup.py build
}
package_python-flask-apscheduler() {
-depends=('python-flask' 'python-apscheduler')
+ depends=('python' 'python-apscheduler' 'python-dateutil' 'python-flask')
- cd $_pipname-$pkgver
- python setup.py install --root="$pkgdir/" --optimize=1
+ cd "$_pipname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
-md5sums=('7129d36d64f688ba5f55aee310e15fd8')
+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
+}