summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 945c3d1443d89b42a0132fec60ccf50c64ec287d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Eragon <eragon at eragon dot re>

_name=flask-crontab
pkgname=python-flask-crontab
pkgver=0.1.2
pkgrel=2
pkgdesc="Simple Flask scheduled tasks without extra daemons"
arch=('any')
url="https://github.com/frostming/flask-crontab"
license=('MIT')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
depends=('python-flask')
source=("$_name-$pkgver.tar.gz::https://github.com/frostming/flask-crontab/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('177b32f222b08b446382aab76b91d2ed4273313b6703bff00f553e5aad96c420')

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl

    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}