replace lots of manual install commands with INSTALL_* variables
[openwrt/svn-archive/archive.git] / utils / lrzsz / 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:=lrzsz
12 PKG_VERSION:=0.12.20
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.ohse.de/uwe/releases/
17 PKG_MD5SUM:=b5ce6a74abc9b9eb2af94dffdfd372a4
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/lrzsz
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=X,Y and Z-modem protocols
29 DESCRIPTION:=\
30 Transfer files in your login sessions.\\\
31 Very leightweight and straight forward.\\\
32 You just need a terminal client that can do \\\
33 either X, Y or Z-modem file transfers.
34 URL:=http://www.ohse.de/uwe/software/lrzsz.html
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/lrzsz/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(CP) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
49 (cd $(1)/usr/bin; \
50 ln -fs lrz lrx; \
51 ln -fs lrz lrb; \
52 ln -fs lsz lsx; \
53 ln -fs lsz lsb; \
54 );
55 endef
56
57 $(eval $(call BuildPackage,lrzsz))