Add Kalamine
This commit is contained in:
parent
09fbf9ae7d
commit
73b21b8e96
54
kalamine-git/PKGBUILD
Normal file
54
kalamine-git/PKGBUILD
Normal file
@ -0,0 +1,54 @@
|
||||
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||||
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||||
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||||
# then please put 'unknown'.
|
||||
|
||||
# The following guidelines are specific to BZR, GIT, HG and SVN packages.
|
||||
# Other VCS sources are not natively supported by makepkg yet.
|
||||
|
||||
# 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user