build: PKGBUILD for ArchLinux master
authorAndrew Sichevoi <k@thekondor.net>
Sun, 24 Jan 2021 10:30:23 +0000 (11:30 +0100)
committerAndrew Sichevoi <k@thekondor.net>
Sun, 24 Jan 2021 10:30:23 +0000 (11:30 +0100)
PKGBUILD [new file with mode: 0644]
PKGBUILD.install [new file with mode: 0644]

diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
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 (file)
index 0000000..1a2f7a2
--- /dev/null
@@ -0,0 +1,7 @@
+post_install() {
+    systemctl enable /etc/systemd/system/reset-trackpoint-fix.service
+}
+
+pre_remove() {
+    systemctl disable reset-trackpoint-fix.service
+}