v1
This commit is contained in:
commit
8ce1d2b138
5 changed files with 73 additions and 0 deletions
11
.SRCINFO
Normal file
11
.SRCINFO
Normal file
|
@ -0,0 +1,11 @@
|
|||
pkgbase = falchion-shutdown
|
||||
pkgdesc = Add hwdb configuration to avoid shutdown or sleeping computer when keyboard go to sleep
|
||||
pkgver = 1.0.0
|
||||
pkgrel = 1
|
||||
install = falchion.install
|
||||
arch = any
|
||||
license = MIT
|
||||
source = 99-asus-falchion.hwdb
|
||||
sha256sums = 5b8649abbd0472dd4167522409a176067ba6ec6c3b271ef98f4a2bbdc38070ba
|
||||
|
||||
pkgname = falchion-shutdown
|
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
*.pkg.tar.zst
|
||||
pkg
|
||||
src
|
||||
|
3
99-asus-falchion.hwdb
Normal file
3
99-asus-falchion.hwdb
Normal file
|
@ -0,0 +1,3 @@
|
|||
evdev:input:b*v0B05p193Ee0111*
|
||||
KEYBOARD_KEY_10081=reserved
|
||||
KEYBOARD_KEY_10082=reserved
|
18
PKGBUILD
Normal file
18
PKGBUILD
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Maintainer: Florian RICHER <florian.richer@protonmail.com>
|
||||
|
||||
pkgname='falchion-shutdown'
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='Add hwdb configuration to avoid shutdown or sleeping computer when keyboard go to sleep'
|
||||
license=('MIT')
|
||||
arch=('any')
|
||||
|
||||
source=("99-asus-falchion.hwdb")
|
||||
sha256sums=("5b8649abbd0472dd4167522409a176067ba6ec6c3b271ef98f4a2bbdc38070ba")
|
||||
|
||||
install=falchion.install
|
||||
|
||||
package () {
|
||||
mkdir -p $pkgdir/etc/udev/hwdb.d
|
||||
cp $srcdir/99-asus-falchion.hwdb $pkgdir/etc/udev/hwdb.d/99-asus-falchion.hwdb
|
||||
}
|
37
falchion.install
Normal file
37
falchion.install
Normal file
|
@ -0,0 +1,37 @@
|
|||
# This is a default template for a post-install scriptlet.
|
||||
# Uncomment only required functions and remove any functions
|
||||
# you don't need (and this header).
|
||||
|
||||
## arg 1: the new package version
|
||||
#pre_install() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
post_install() {
|
||||
echo "Update hwdb"
|
||||
systemd-hwdb update
|
||||
}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
#pre_upgrade() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
post_upgrade() {
|
||||
post_install "$1"
|
||||
}
|
||||
|
||||
## arg 1: the old package version
|
||||
#pre_remove() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the old package version
|
||||
post_remove() {
|
||||
post_install "$1"
|
||||
}
|
||||
|
Loading…
Reference in a new issue