Compare commits
10 Commits
36371368fd
...
4288f86fd1
Author | SHA1 | Date | |
---|---|---|---|
4288f86fd1 | |||
2415a573fb | |||
3e1b3f0d5c | |||
5613b1b470 | |||
681704f770 | |||
50caa7255c | |||
73b21b8e96 | |||
09fbf9ae7d | |||
560a3b69e2 | |||
c83c8f42ab |
48
kalamine-git/PKGBUILD
Normal file
48
kalamine-git/PKGBUILD
Normal 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
|
||||||
|
}
|
@ -26,7 +26,7 @@ install=
|
|||||||
changelog=
|
changelog=
|
||||||
source=("suspend-resume.tar.gz")
|
source=("suspend-resume.tar.gz")
|
||||||
noextract=()
|
noextract=()
|
||||||
sha512sums=('04cd25a3eb701ae23ad7a66da900db8ea8a3f49694c05b59f9d7418e3713d66b2df6ce221f9a39c592d3df230d0c41db864dc4a09c5d6e8a63cd3483d1557d86')
|
sha512sums=('9cdb5c97125749549624fffd12796c65d41aea374b91d2ef740da3c05f6349883418d150844d23cc6afdba2a59166bdd62bd4b444f933d89bb5b13eb844a66c9')
|
||||||
validpgpkeys=()
|
validpgpkeys=()
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
@ -41,5 +41,6 @@ package() {
|
|||||||
install -d "$pkgdir/opt"
|
install -d "$pkgdir/opt"
|
||||||
install -d "$pkgdir/etc/systemd/system/"
|
install -d "$pkgdir/etc/systemd/system/"
|
||||||
install -m755 "$pkgname/opt/suspend-resume.sh" "$pkgdir/opt/"
|
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/"
|
install -m644 "$pkgname/etc/systemd/system/suspend-resume.service" "$pkgdir/etc/systemd/system/"
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user