blob: 1ed8f817fc670ee724362a000a31cf0b0b4fd6c4 (
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
38
39
40
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=ymake-git
pkgver=0.7.2.4.g9a03fb1
pkgrel=1
pkgdesc="ymake"
arch=('any')
url="https://github.com/evilbinary/ymake"
license=('MIT')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
depends=(python)
makedepends=(git python-build python-installer python-wheel python-setuptools)
backup=()
options=()
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --always --tags | sed 's/^v//' | sed 's|-|.|g'
}
prepare()
{
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "${srcdir}/${pkgname}"
# pip install -r requirements.txt
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|