From 69058cfcf6f2a0ff9a0d756c199dd3fb3af73535 Mon Sep 17 00:00:00 2001 From: Andrew Sichevoi Date: Sun, 24 Jan 2021 11:30:23 +0100 Subject: [PATCH] build: PKGBUILD for ArchLinux --- PKGBUILD | 22 ++++++++++++++++++++++ PKGBUILD.install | 7 +++++++ 2 files changed, 29 insertions(+) create mode 100644 PKGBUILD create mode 100644 PKGBUILD.install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3fc38d7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Andrew Sichevoi (thekondor.net) + +pkgname=reset-trackpoint-fix +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Tiny w/a for Lenovo Thinkpad's trackpoint/trackpad which deads on laptop resume." +arch=('x86_64') +url="https://github.com/thekondor/${pkgname}" +license=('MPL') +makedepends=( + 'make' + 'systemd' +) +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thekondor/${pkgname}/archive/v${pkgver}.tar.gz") +sha256sums=('12e3f89854f9ada6b5d1a055e76c12765ee6eb02735e8b8e84359845d049df7e') +install='PKGBUILD.install' + +package() { + cd "${pkgname}-${pkgver}" + DESTDIR=${pkgdir} make install +} + diff --git a/PKGBUILD.install b/PKGBUILD.install new file mode 100644 index 0000000..1a2f7a2 --- /dev/null +++ b/PKGBUILD.install @@ -0,0 +1,7 @@ +post_install() { + systemctl enable /etc/systemd/system/reset-trackpoint-fix.service +} + +pre_remove() { + systemctl disable reset-trackpoint-fix.service +} -- 2.20.1