diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-29 03:28:31 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-29 03:28:31 -0300 |
commit | cc1a189d2869b460f7660bbd3ad2d86324d06f81 (patch) | |
tree | c6bf85428b40cba55ca9d1323e05d76f544a90a5 /pcr/thinkfan/PKGBUILD | |
parent | 05fec2d89c8af087fe598a181a3d3210f71eb876 (diff) |
thinkfan-0.9.2-1: updating version
Diffstat (limited to 'pcr/thinkfan/PKGBUILD')
-rw-r--r-- | pcr/thinkfan/PKGBUILD | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/pcr/thinkfan/PKGBUILD b/pcr/thinkfan/PKGBUILD index c8bc49e0b..9af51d9c7 100644 --- a/pcr/thinkfan/PKGBUILD +++ b/pcr/thinkfan/PKGBUILD @@ -2,25 +2,36 @@ # Contributor (Arch): Frederik Alkærsig (FALKER) <havnelisten AT gmail.com> pkgname=thinkfan -pkgver=0.8.1 -pkgrel=3 +pkgver=0.9.2 +pkgrel=1 pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi" arch=('i686' 'x86_64' 'mips64el') +makedepends=('cmake') +depends=('libatasmart') license=('GPL') source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz - "thinkfan" "thinkfan.service") + "thinkfan.install" "thinkfan.service" "thinkpad_acpi.conf") url="http://thinkfan.sourceforge.net/" -md5sums=('aaa6c88bab3b43756ac5a1638622828c' - '16fc3a83a1468e3ccaeba67e14ab2177' - '7639b82035fcee712753e05de6b0601d') +install="thinkfan.install" +md5sums=('4292633aebd61b91f04cd332c4d3e181' + '76553f63dc55a6e09a429bb4e28eb649' + '0197bde7c3d3b64d34635ead78cf3437' + 'bca920d066846e5811a2465aefa13012') build() { - cd ${srcdir}/${pkgname}-${pkgver} + cd ${srcdir} + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DUSE_ATASMART:BOOL=ON make - install -D -m755 ${pkgname} ${pkgdir}/usr/sbin/${pkgname} - install -D -m755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname} +} + +package() { + cd ${srcdir} + install -D -m755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -D -m644 ${srcdir}/thinkpad_acpi.conf ${pkgdir}/usr/lib/modprobe.d/thinkpad_acpi.conf install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}/README - install -D -m644 ${srcdir}/thinkfan.service ${pkgdir}/usr/lib/systemd/system/thinkfan.service + install -D -m644 NEWS ${pkgdir}/usr/share/doc/${pkgname}/README + install -D -m644 ${srcdir}/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service + install -D -m644 ${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1 cp -r examples ${pkgdir}/usr/share/doc/${pkgname}/ } |