commit 8ce1d2b13850f3f5f403367dedb57c8807a64783 Author: Florian RICHER Date: Thu May 5 22:44:30 2022 +0200 v1 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..824c936 --- /dev/null +++ b/.SRCINFO @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df8c10e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.zst +pkg +src + diff --git a/99-asus-falchion.hwdb b/99-asus-falchion.hwdb new file mode 100644 index 0000000..a0eeb09 --- /dev/null +++ b/99-asus-falchion.hwdb @@ -0,0 +1,3 @@ +evdev:input:b*v0B05p193Ee0111* + KEYBOARD_KEY_10081=reserved + KEYBOARD_KEY_10082=reserved \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4e7af27 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,18 @@ +# Maintainer: Florian RICHER + +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 +} diff --git a/falchion.install b/falchion.install new file mode 100644 index 0000000..d374423 --- /dev/null +++ b/falchion.install @@ -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" +} +