-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathPKGBUILD
34 lines (30 loc) · 1010 Bytes
/
PKGBUILD
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
28
29
30
31
32
33
34
# Maintainer: Joan Bruguera Micó <[email protected]>
pkgname=full-offline-backup-for-todoist-git
pkgver=0.1
pkgrel=1
pkgdesc="Small, dependency-less Python script to make a backup of all Todoist tasks and attachments that is accessible offline"
arch=('any')
url="https://github.com/joanbm/full-offline-backup-for-todoist"
license=('GPLv3')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
provides=('full-offline-backup-for-todoist')
conflicts=('full-offline-backup-for-todoist')
source=('git+https://github.com/joanbm/full-offline-backup-for-todoist.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir/${pkgname%-git}"
python -m unittest
}
package() {
cd "$srcdir/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
}