Date: Sunday, May 12, 2013 @ 12:04:25
  Author: eric
Revision: 185226

upgpkg: i8kutils 1.33-3

Merge i8kmon package, Clean up PKGBUILD

Added:
  i8kutils/trunk/i8kmon.service
Modified:
  i8kutils/trunk/PKGBUILD

----------------+
 PKGBUILD       |   34 ++++++++++++++++++++++++----------
 i8kmon.service |    9 +++++++++
 2 files changed, 33 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-05-12 09:29:56 UTC (rev 185225)
+++ PKGBUILD    2013-05-12 10:04:25 UTC (rev 185226)
@@ -4,25 +4,39 @@
 
 pkgname=i8kutils
 pkgver=1.33
-pkgrel=2
+pkgrel=3
 pkgdesc="Dell Inspiron/Latitude kernel driver and utilities"
 arch=('i686' 'x86_64')
 url="http://people.debian.org/~dz/i8k/";
 license=('GPL2')
 depends=('glibc')
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}_${pkgver}.tar.gz)
-md5sums=('1ab077b301dbb0f4be8ef52eb3b97628')
+optdepends=('tk: for i8kmon deamon')
+conflicts=('i8kmon')
+provides=('i8kmon')
+replaces=('i8kmon')
+backup=('etc/i8kutils/i8kmon.conf')
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}_${pkgver}.tar.gz
+        i8kmon.service)
+md5sums=('1ab077b301dbb0f4be8ef52eb3b97628'
+         '32c159616f72ab65969db95b9e824ced')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+  # conform to Arch Linux guidelines
+  sed -i 's|/etc/i8kmon|/etc/i8kutils/i8kmon.conf|g' i8kmon.1
+  sed -i 's|/etc/i8kmon.conf|/etc/i8kutils/i8kmon.conf|g' i8kmon
+}
+
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname-$pkgver
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  install -D -m755 i8kctl "$pkgdir/usr/bin/i8kctl"
-  install -D -m755 i8kbuttons "$pkgdir/usr/bin/i8kbuttons"
-  install -D -m644 i8kbuttons.1 "$pkgdir/usr/share/man/man1/i8kbuttons.1"
-  install -D -m644 i8kctl.1 "$pkgdir/usr/share/man/man1/i8kctl.1"
-  ln -fs ./i8kctl "$pkgdir/usr/bin/i8kfan"
+  cd $pkgname-$pkgver
+  install -d "$pkgdir"/usr/{bin,share/man/man1}
+  make DESTDIR="$pkgdir" install install-man
+  install -D -m644 i8kmon.conf "$pkgdir/etc/i8kutils/i8kmon.conf"
+  install -D -m644 ../i8kmon.service 
"$pkgdir/usr/lib/systemd/system/i8kmon.service"
 }

Added: i8kmon.service
===================================================================
--- i8kmon.service                              (rev 0)
+++ i8kmon.service      2013-05-12 10:04:25 UTC (rev 185226)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Dell laptop thermal monitoring
+ConditionPathExists=/proc/i8k
+
+[Service]
+ExecStart=/usr/bin/i8kmon -d
+
+[Install]
+WantedBy=multi-user.target

Reply via email to