|
|
请大家帮我转换一下这个pkg到ebuild,谢谢!
- # Contributor: evr <evanroman @ gmail>
- pkgname=tpfand
- pkgver=0.94
- pkgrel=4
- pkgdesc="Monitors temperatures and controls fan speed of IBM/Lenovo ThinkPad notebooks."
- arch=('i686' 'x86_64')
- url="http://www.gambitchess.org/mediawiki/index.php/ThinkPad_Fan_Control"
- license=('GPL3')
- depends=(python hal)
- optdepends=(tpfan-admin tpfand-profiles)
- source=(http://launchpad.net/tp-fan/tpfand/$pkgver/+download/tpfand-$pkgver.tar.gz)
- md5sums=('fa08a5c3eebd47842e1fb84b6283416d')
- build() {
- cd "$srcdir/$pkgname-$pkgver"
- install -d $pkgdir/usr/lib/python2.6/site-packages/tpfand
- install -m644 src/tpfand/* $pkgdir/usr/lib/python2.6/site-packages/tpfand
- install -d $pkgdir/usr/share/tpfand/models/by-id
- install -d $pkgdir/usr/share/tpfand/models/by-name
- install -m644 share/models/generic $pkgdir/usr/share/tpfand/models
- install -d $pkgdir/etc/dbus-1/system.d/
- install -m644 etc/dbus-1/system.d/* $pkgdir/etc/dbus-1/system.d/
- install -d $pkgdir/usr/sbin
- install wrappers/tpfand $pkgdir/usr/sbin/
- install -d $pkgdir/etc/modprobe.d
- install -m644 etc/modprobe.d/thinkpad_acpi.modprobe $pkgdir/etc/modprobe.d/
- if [ -e /etc/tpfand.conf ]
- then install -m644 /etc/tpfand.conf $pkgdir/etc/tpfand.conf
- else install -m644 etc/tpfand.conf $pkgdir/etc/tpfand.conf
- fi
- install -D -m755 $startdir/tpfand.DAEMON $pkgdir/etc/rc.d/tpfand
- install -D -m755 $startdir/tpfand.PMUTILS $pkgdir/etc/pm/sleep.d/09tpfand
- }
复制代码 |
|