From: Andrew Sichevoi Date: Sun, 24 Jan 2021 10:30:23 +0000 (+0100) Subject: build: PKGBUILD for ArchLinux X-Git-Url: http://git.thekondor.net/?a=commitdiff_plain;h=HEAD;p=reset-trackpoint-fix.git build: PKGBUILD for ArchLinux --- 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 +}