[packages] iioutils: add new package
[packages.git] / utils / iioutils / Makefile
1 #
2 # Copyright (C) 2012-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iioutils
11 PKG_VERSION:=0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=8a88b711d3d6a7fedd75af833c5470cb
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/iioutils
23   SECTION:=utils
24   CATEGORY:=Utilities
25   DEPENDS:=+sysfsutils
26   TITLE:=Linux IIO Utilities
27   URL:=http://sourceforge.net/projects/iioutils/
28 endef
29
30 define Package/iioutils/description
31         lsiio is a utility for displaying information about IndustrialIO devices in the system and
32         the sensors provided by them.
33 endef
34
35 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
36
37 define Package/iioutils/install
38         $(INSTALL_DIR) $(1)/usr/sbin
39         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{lsiio,iio_ring} $(1)/usr/sbin/
40 endef
41
42 $(eval $(call BuildPackage,iioutils))