blob: dae54acfbda308a4afb43a58a703d3d31409e078 (
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: Cyril <cyrwae[at]hotmail[dot]com>
pkgname=python-fake-bpy-module-latest
_name=${pkgname#python-}
_pkgver=$(date -d "yesterday" '+%Y%m%d')
pkgver=${_pkgver}
pkgrel=1
pkgdesc="Collection of the fake Blender Python API module for the code completion."
arch=('x86_64')
url="https://github.com/nutti/fake-bpy-module"
license=('MIT')
groups=()
depends=()
makedepends=(python-build python-installer python-wheel)
optdepends=()
provides=('python-fake-bpy-module-latest')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz LICENSE)
noextract=()
md5sums=('SKIP'
'SKIP')
build() {
cd "${_name//-/_}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd "${_name//-/_}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" 'README.md'
}
|