Compare commits

...

10 Commits

3 changed files with 50 additions and 1 deletions

48
kalamine-git/PKGBUILD Normal file
View File

@ -0,0 +1,48 @@
# Maintainer: Fabrice Mouhartem <aur-packages@epheme.re>
#
# Inspired by fanficfare-git's PKGBUILD
# (https://aur.archlinux.org/packages/fanficfare-git)
_pkgname=kalamine
pkgname=kalamine-git
pkgver=r77.decbb32
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'
'python-hatchling'
)
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}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${_pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}

View File

@ -26,7 +26,7 @@ install=
changelog=
source=("suspend-resume.tar.gz")
noextract=()
sha512sums=('04cd25a3eb701ae23ad7a66da900db8ea8a3f49694c05b59f9d7418e3713d66b2df6ce221f9a39c592d3df230d0c41db864dc4a09c5d6e8a63cd3483d1557d86')
sha512sums=('9cdb5c97125749549624fffd12796c65d41aea374b91d2ef740da3c05f6349883418d150844d23cc6afdba2a59166bdd62bd4b444f933d89bb5b13eb844a66c9')
validpgpkeys=()
prepare() {
@ -41,5 +41,6 @@ package() {
install -d "$pkgdir/opt"
install -d "$pkgdir/etc/systemd/system/"
install -m755 "$pkgname/opt/suspend-resume.sh" "$pkgdir/opt/"
install -m644 "$pkgname/etc/systemd/system/suspend-resume.timer" "$pkgdir/etc/systemd/system/"
install -m644 "$pkgname/etc/systemd/system/suspend-resume.service" "$pkgdir/etc/systemd/system/"
}

Binary file not shown.