Some improvements: http://ix.io/2LCC
Dont fail if BUILDDIR in makepkg.conf is not empty.
Installing "$pkgname".service once is enough :)
diff --git a/.SRCINFO b/.SRCINFO
index 4417b42..6c419bc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = thinkfan
pkgdesc = A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi
pkgver = 1.2.1
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/vmatare/thinkfan
install = thinkfan.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 3c99a7e..17905ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=thinkfan
pkgver=1.2.1
-pkgrel=2
+pkgrel=3
pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
url="https://github.com/vmatare/thinkfan"
arch=('i686' 'x86_64')
@@ -37,10 +37,9 @@ package() {
install -D -m644 examples/* "$pkgdir"/usr/share/doc/"$pkgname"/examples
install -D -m644 src/"$pkgname".1 "$pkgdir"/usr/share/man/man1
install -D -m644 src/"$pkgname".conf.5 "$pkgdir"/usr/share/man/man5
- install -D -m644 ../"$pkgname".service rcscripts/systemd/thinkfan-wakeup.service "$pkgdir"/usr/lib/systemd/system
- install -D -m644 ../"$pkgname".service rcscripts/systemd/thinkfan-sleep.service "$pkgdir"/usr/lib/systemd/system
+ install -D -m644 "$srcdir/$pkgname".service rcscripts/systemd/thinkfan-{sleep,wakeup}.service "$pkgdir"/usr/lib/systemd/system
install -D -m644 rcscripts/systemd/override.conf "$pkgdir"/etc/systemd/system/thinkfan.service.d
- install -D -m644 ../thinkpad_acpi.conf "$pkgdir"/usr/lib/modprobe.d
+ install -D -m644 "$srcdir"/thinkpad_acpi.conf "$pkgdir"/usr/lib/modprobe.d
}
# vim:set ts=2 sw=2 noet:
Pinned Comments