diff --git a/packages/sysutils/lm_sensors/build b/packages/sysutils/lm_sensors/build
deleted file mode 100755
index 836c2a7e8d..0000000000
--- a/packages/sysutils/lm_sensors/build
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-cd $PKG_BUILD
- make PREFIX=/usr \
- CC="$TARGET_CC" \
- AR="$TARGET_AR" \
- CFLAGS="$TARGET_CFLAGS" \
- CPPFLAGS="$TARGET_CPPFLAGS" \
diff --git a/packages/sysutils/lm_sensors/install b/packages/sysutils/lm_sensors/install
deleted file mode 100755
index e2dba75879..0000000000
--- a/packages/sysutils/lm_sensors/install
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-mkdir -p $INSTALL/usr/bin
- cp $PKG_BUILD/prog/sensors/sensors $INSTALL/usr/bin
-
-mkdir -p $INSTALL/usr/lib
- cp -P $PKG_BUILD/lib/libsensors.so* $INSTALL/usr/lib
-
-mkdir -p $INSTALL/etc
- cp $PKG_BUILD/etc/sensors.conf.default $INSTALL/etc/sensors3.conf
diff --git a/packages/sysutils/lm_sensors/meta b/packages/sysutils/lm_sensors/package.mk
similarity index 81%
rename from packages/sysutils/lm_sensors/meta
rename to packages/sysutils/lm_sensors/package.mk
index 8234d355a9..97ed4b93cf 100644
--- a/packages/sysutils/lm_sensors/meta
+++ b/packages/sysutils/lm_sensors/package.mk
@@ -22,14 +22,26 @@ PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://secure.netroedge.com/~lm78/"
-#PKG_URL="http://dl.lm-sensors.org/lm-sensors/releases/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_URL="http://ftp.gwdg.de/pub/linux/misc/lm-sensors/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS=""
-PKG_BUILD_DEPENDS="toolchain"
+PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="system"
PKG_SHORTDESC="lm_sensors: Hardware monitoring via the SMBus"
PKG_LONGDESC="lm_sensors is a package to get data from the SMB (System Management Bus - an i2c bus) on modern mainboards. It consists of kernel modules and users space tools to get stuff like cpu / mb temperature, voltages, fan speed..."
-PKG_IS_ADDON="no"
+PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
+
+PKG_MAKE_OPTS_TARGET="PREFIX=/usr CC=$TARGET_CC AR=$TARGET_AR"
+PKG_MAKEINSTALL_OPTS_TARGET="PREFIX=/usr"
+
+pre_make_target() {
+ export CFLAGS="$TARGET_CFLAGS"
+ export CPPFLAGS="$TARGET_CPPFLAGS"
+}
+
+post_makeinstall_target() {
+ rm -rf $INSTALL/usr/bin/sensors-conf-convert
+ rm -rf $INSTALL/usr/sbin/
+}