diff options
author | lmbbrkr | 2020-11-01 20:31:22 +0200 |
---|---|---|
committer | lmbbrkr | 2020-11-01 20:31:22 +0200 |
commit | 1ac6f62323fa2d6ddd82aa193d9b6a88c88627c1 (patch) | |
tree | e09dd3a513a6d6f19a983acbf487a4816c9842ce | |
download | aur-tp-auto-kbbl.tar.gz |
Initial PKGBUILD
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | tp-auto-kbbl.conf.d | 1 | ||||
-rw-r--r-- | tp-auto-kbbl.service | 13 |
4 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f814e4612db9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = tp-auto-kbbl + pkgdesc = Auto toggle keyboard back-lighting on Thinkpads (and maybe other laptops) for Linux + pkgver = 0.1.5 + pkgrel = 1 + url = https://github.com/saibotd/tp-auto-kbbl + arch = x86_64 + license = MIT + makedepends = cargo + depends = dbus + depends = gcc-libs + depends = glibc + depends = libevdev + backup = etc/conf.d/tp-auto-kbbl + source = tp-auto-kbbl-0.1.5.tar.gz::https://github.com/saibotd/tp-auto-kbbl/archive/0.1.5.tar.gz + source = tp-auto-kbbl.service + source = tp-auto-kbbl.conf.d + sha256sums = 8fd9f7f89a07057878c42269cbccd34dd51883001d18eae4a6599778d6fc9e57 + sha256sums = b41d5d2c4739b891fbdf781e69dda4135c8ee93fd59728b3bde64175eef252de + sha256sums = 8361883b7e0d6513f709dbdef678d818502d58e720aae97e21bc87484059473b + +pkgname = tp-auto-kbbl + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f832f914d1dc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: lmbbrkr <lmbbrkr at protonmail dot ch> + +pkgname=tp-auto-kbbl +pkgver=0.1.5 +pkgrel=1 +pkgdesc="Auto toggle keyboard back-lighting on Thinkpads (and maybe other laptops) for Linux" +arch=('x86_64') +url="https://github.com/saibotd/tp-auto-kbbl" +license=('MIT') +depends=('dbus' 'gcc-libs' 'glibc' 'libevdev') +makedepends=('cargo') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz" + "${pkgname}.service" + "${pkgname}.conf.d") +backup=("etc/conf.d/${pkgname}") +sha256sums=('8fd9f7f89a07057878c42269cbccd34dd51883001d18eae4a6599778d6fc9e57' + 'b41d5d2c4739b891fbdf781e69dda4135c8ee93fd59728b3bde64175eef252de' + '8361883b7e0d6513f709dbdef678d818502d58e720aae97e21bc87484059473b') + +build() { + cd "${pkgname}-${pkgver}" + cargo build --release --locked --all-features --target-dir=target +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin/" + install -Dm644 "${srcdir}/${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system/" + install -Dm644 "${srcdir}/${pkgname}.conf.d" "${pkgdir}/etc/conf.d/${pkgname}" + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" +} + +# vim:set ts=2 sw=2 et: diff --git a/tp-auto-kbbl.conf.d b/tp-auto-kbbl.conf.d new file mode 100644 index 000000000000..1d2be459dd5e --- /dev/null +++ b/tp-auto-kbbl.conf.d @@ -0,0 +1 @@ +TP_AUTO_KBBL_ARGS="-d /dev/input/by-path/platform-i8042-serio-0-event-kbd -b 2 -t 15" diff --git a/tp-auto-kbbl.service b/tp-auto-kbbl.service new file mode 100644 index 000000000000..58e03f0b1a60 --- /dev/null +++ b/tp-auto-kbbl.service @@ -0,0 +1,13 @@ +[Unit] +Description=Auto toggle keyboard backlight +Documentation=https://github.com/saibotd/tp-auto-kbbl +After=dbus.service + +[Service] +Type=simple +EnvironmentFile=-/etc/conf.d/tp-auto-kbbl +ExecStart=/usr/bin/tp-auto-kbbl $TP_AUTO_KBBL_ARGS +Restart=always + +[Install] +WantedBy=multi-user.target |