remove PKG_CAT from packages
[openwrt/svn-archive/archive.git] / utils / usbutils / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=usbutils
12 PKG_VERSION:=0.72
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/linux-usb
17 PKG_MD5SUM:=ee345fe605ffcfce843dae4aed81122b
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/usbutils
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+libusb
28 TITLE:=USB devices listing utilities
29 URL:=http://linux-usb.sourceforge.net/
30 endef
31
32 define Package/usbutils/postinst
33 #!/bin/sh
34 $${IPKG_INSTROOT}/usr/sbin/update-usbids.sh
35 endef
36
37 # uses GNU configure
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Package/usbutils/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(1)/usr/sbin/
48 $(CP) $(PKG_BUILD_DIR)/update-usbids.sh $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/usr/share
50 $(CP) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(1)/usr/share/
51 endef
52
53 $(eval $(call BuildPackage,usbutils))