blob: bbae1ea48277e916b7bf317b438d39bacf3b2716 (
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
|
# Maintainer: Naya Verdier <n at yaverdier dot com>
pkgname=instater
pkgver=0.13.1
pkgrel=1
pkgdesc='An easy solution for system/dotfile configuration'
arch=('any')
url=https://github.com/nayaverdier/instater
license=('MIT')
depends=('python' 'python-jinja' 'python-passlib' 'python-rich' 'python-yaml')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/i/instater/instater-$pkgver.tar.gz")
sha256sums=('d683885a645d06fbe223e48c820faa375bdffa4a5fe5ae2b90df2febd9af5de7')
b2sums=('028eeabf0ccd84065cab84aad4604acd125b5124d92c2ace605033d50fa419fe62e8a770c1252a23f7b3eae8526ada35eff21b85b0d0b7abd308a4c507f83810')
build() {
cd "instater-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "instater-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
chmod +x "$pkgdir"/usr/bin/*
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s $site_packages/instater-$pkgver.dist-info/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|