blob: 391a54c782ddb8305e4f0e10ff9921bf48009ac8 (
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
35
36
37
|
# Maintainer: Fabrix Xm <fabrix.xm@gmail.com>
pkgname=lesana
pkgver=0.10.1
pkgrel=2
pkgdesc="Manage collection inventories throught yaml files, develop version"
arch=('any')
url="https://lesana.trueelena.org/"
license=(AGPL-3.0-or-later)
depends=('python' 'python-dateutil' 'python-jinja' 'python-ruamel-yaml' 'python-xapian' 'python-setuptools' 'python-hazwaz')
optdepends=(
'python-argcomplete: enable commandline tab completion'
'git: git integration'
'sh: git integration'
'python-gitpython: git integration'
)
makedepends=(python-build python-installer python-wheel)
source=("https://git.sr.ht/~valhalla/$pkgname/archive/v$pkgver.tar.gz" pyproject.toml.patch)
sha256sums=('9e858cc10ba57132f10b16ecf32f54f8a0dc96783bf0283473340db4536c2e25'
'0db3be7a5e6d0246fbc90dd0fc61c5d765cea49c03133c2a6ce4224ec1d6d2f5')
prepare() {
cd "${pkgname}-v${pkgver}"
rm -fr dist/*.whl
# patch pyproject to not require setuptools-scm to get version
patch --forward --strip=1 --input=../pyproject.toml.patch
}
build() {
cd "${pkgname}-v${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-v${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|