lua-rs232: fix compilation with GCC13
[feed/packages.git] / utils / lrzsz / Makefile
1 #
2 # Copyright (C) 2006-2016 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:=lrzsz
11 PKG_VERSION:=0.12.21
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=@DEBIAN/pool/main/l/lrzsz/
16 PKG_HASH:=3262e5df47b108d33e184ff3bf5af14ddca1ac15118ac4ed9171a57c1593ae00
17 PKG_BUILD_DIR=$(BUILD_DIR)/lrzsz-990823
18
19 PKG_MAINTAINER:=Hsing-Wang Liao <kuoruan@gmail.com>
20 PKG_LICENSE:=GPL-2.0-or-later
21 PKG_LICENSE_FILES:=COPYING
22 PKG_CPE_ID:=cpe:/a:lrzsz_project
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/lrzsz
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=Tools for zmodem/xmodem/ymodem file transfer
32 URL:=https://ohse.de/uwe/software/lrzsz.html
33 endef
34
35 define Package/lrzsz/description
36 lrzsz is a cosmetically modified zmodem/ymodem/xmodem package built
37 from the public-domain version of Chuck Forsberg's rzsz package.
38
39 These programs use error correcting protocols ({z,x,y}modem) to send
40 (sz, sx, sb) and receive (rz, rx, rb) files over a dial-in serial port
41 from a variety of programs running under various operating systems.
42 endef
43
44 # to stop automake from running, the bundled autohell crap is too old
45 define Build/Configure
46 touch $(PKG_BUILD_DIR)/*
47 touch $(PKG_BUILD_DIR)/*/*
48 $(call Build/Configure/Default)
49 endef
50
51 define Package/lrzsz/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
55 (cd $(1)/usr/bin; \
56 ln -fs lrz lrx; \
57 ln -fs lrz lrb; \
58 ln -fs lrz rz; \
59 ln -fs lrz rx; \
60 ln -fs lrz rb; \
61 ln -fs lsz lsx; \
62 ln -fs lsz lsb; \
63 ln -fs lsz sz; \
64 ln -fs lsz sx; \
65 ln -fs lsz sb; \
66 );
67 endef
68
69 $(eval $(call BuildPackage,lrzsz))