47 lines
889 B
Bash
47 lines
889 B
Bash
# Maintainer: rhssk <rhssk@posteo.eu>
|
|
pkgname=kicost-git
|
|
_remotename=KiCost
|
|
pkgver=1.1.6.r1.227f246
|
|
pkgrel=1
|
|
pkgdesc="Build cost spreadsheet for a KiCad project"
|
|
url="https://github.com/hildogjr/KiCost"
|
|
depends=(
|
|
python
|
|
python-beautifulsoup4
|
|
python-lxml
|
|
python-xlsxwriter
|
|
python-tqdm
|
|
python-requests
|
|
python-validators
|
|
python-wxpython
|
|
python-colorama
|
|
)
|
|
makedepends=(
|
|
git
|
|
python-setuptools
|
|
)
|
|
provides=("${pkgname%-git}")
|
|
conflicts=("${pkgname%-git}")
|
|
license=('MIT')
|
|
arch=('any')
|
|
source=('git+https://github.com/hildogjr/KiCost.git')
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$_remotename"
|
|
|
|
printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
|
|
}
|
|
|
|
check() {
|
|
cd "$_remotename"
|
|
|
|
python -m unittest tests.test_kicost
|
|
}
|
|
|
|
package() {
|
|
cd "$_remotename"
|
|
|
|
python setup.py install --root="$pkgdir" --optimize=1
|
|
}
|