summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c86abb777872740daaf050dfde7b63c6c9baa9c9 (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
28
29
30
31
32
33
34
# Maintainer: Martin Rys <https://rys.rs/contact> | Toss a coin on https://rys.rs/donate

pkgname=python-ticktick-py
_reponame=ticktick-py
pkgver=2.0.3
pkgrel=3
pkgdesc="Unofficial API library for interacting with TickTick.com"
url="https://pypi.org/project/${_reponame}/"
arch=(any)
license=('MIT')
depends=('python' 'python-requests' 'python-pytz')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'cython' 'git')
source=(
	"https://pypi.org/packages/source/${_reponame::1}/${_reponame}/${_reponame}-${pkgver}.tar.gz"
	"password-login.patch::https://github.com/btw04/ticktick-py/commit/2d8d874e2d97f6c43d4fe318665fbe4a7e18eb72.patch"
)
sha256sums=('f6e96870b91f16717a81e20ffef4a2f5b2a524d6a79e31ab64e895a90a372b51'
            '9d362c34660323500f9fd1d8c4835c6dac3f06a8396f4762cad806e2932ac7b5')

prepare() {
	cd "${srcdir}/${_reponame}-${pkgver}"
	patch -p1 < "${srcdir}/password-login.patch"
}

build() {
	cd "${srcdir}/${_reponame}-${pkgver}"
	python -m build --wheel --no-isolation
}

package() {
	cd "${srcdir}/${_reponame}-${pkgver}"
	python -m installer --destdir="${pkgdir}/" dist/*.whl
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}