my-pkgs/kalamine-git/PKGBUILD

49 lines
953 B
Bash
Raw Normal View History

2023-12-28 18:31:20 +00:00
# Maintainer: Fabrice Mouhartem <aur-packages@epheme.re>
2023-12-28 18:33:38 +00:00
#
# Inspired by fanficfare-git's PKGBUILD
# (https://aur.archlinux.org/packages/fanficfare-git)
2023-12-28 18:31:20 +00:00
_pkgname=kalamine
pkgname=kalamine-git
2023-12-28 21:59:07 +00:00
pkgver=r77.decbb32
2023-12-28 18:31:20 +00:00
pkgrel=1
pkgdesc="A text-based, cross-platform Keyboard Layout Maker."
arch=('any')
url="https://github.com/fabi1cazenave/${_pkgname}"
license=('MIT')
groups=()
2023-12-28 20:49:08 +00:00
_deps=(
'click'
'pyyaml'
'setuptools'
'tomli'
'lxml'
2023-12-28 18:31:20 +00:00
)
depends=("${_deps[@]/#/python-}")
2023-12-28 21:59:07 +00:00
makedepends=(
'git'
'python-hatchling'
)
2023-12-28 18:31:20 +00:00
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_pkgname}"
2023-12-28 20:49:08 +00:00
python -m build --wheel --no-isolation
2023-12-28 18:31:20 +00:00
}
package() {
cd "$srcdir/${_pkgname}"
2023-12-28 20:02:07 +00:00
python -m installer --destdir="${pkgdir}" dist/*.whl
2023-12-28 18:31:20 +00:00
}