blob: 35972519d45de69dfde1bb553c6d5453957077e0 (
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
|
# Maintainer: Aleksandr Beliaev <trap000d@gmail.com>
_pkgname=seafobj
pkgname=python-$_pkgname
pkgver=11.0.12
pkgrel=2
pkgdesc="Python library for accessing seafile data model"
arch=('any')
url="https://github.com/haiwen/seafobj"
license=('Apache')
depends=('python' 'python-boto3')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("${url}/archive/v${pkgver}-server.tar.gz"
"pyproject.toml")
sha256sums=('75d5e5e5aabc8c28cf51a850cef72ece575e16d26f851b28c591137d6aa8f308'
'29544f89513206cf72556af70e955dcf058ac31a9f3b9a966aa831edf51f7960')
prepare() {
ln -sfT "$srcdir/pyproject.toml" "$srcdir/${_pkgname}-${pkgver}-server/pyproject.toml"
}
build() {
cd "$srcdir/${_pkgname}-${pkgver}-server"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${_pkgname}-${pkgver}-server"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|