my-pkgs/kalamine-git/PKGBUILD

47 lines
996 B
Bash
Raw Normal View History

2023-12-28 18:31:20 +00:00
# Maintainer: Fabrice Mouhartem <aur-packages@epheme.re>
_pkgname=kalamine
pkgname=kalamine-git
pkgver=r75.56b4e79
pkgrel=1
pkgdesc="A text-based, cross-platform Keyboard Layout Maker."
arch=('any')
url="https://github.com/fabi1cazenave/${_pkgname}"
license=('MIT')
groups=()
deps=(
'click',
'pyyaml',
'setuptools',
'tomli',
'lxml',
)
depends=("${_deps[@]/#/python-}")
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=
source=("git+${url}.git")
md5sums=('SKIP')
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.
pkgver() {
cd "$srcdir/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_pkgname}"
# python -m build --wheel --no-isolation
python setup.py build
}
package() {
cd "$srcdir/${_pkgname}"
python setup.py install --root="$pkgdir" --optimize=1
}