3b6996590043dcb0a374ac3a6edf7e611cdf1981
[packages.git] / utils / gzip / Makefile
1
2 # Copyright (C) 2006-2009 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:=gzip
11 PKG_VERSION:=1.3.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gzip/
16 PKG_MD5SUM:=c54a31b93e865f6a4410b2dc64662706
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/gzip
21   SECTION:=utils
22   CATEGORY:=Utilities
23   DEPENDS:=
24   TITLE:=gzip (GNU zip) is a compression utility.
25   URL:=http://www.gzip.org/
26 endef
27
28 define Package/gzip/description
29         gzip (GNU zip) is a compression utility designed to be a \
30         replacement for compress.
31 endef
32
33 define Build/Compile
34         $(MAKE) -C $(PKG_BUILD_DIR) \
35                 DESTDIR="$(PKG_INSTALL_DIR)" \
36                 all install
37         $(SED) 's,/bin/bash,/bin/sh,g' $(PKG_INSTALL_DIR)/usr/bin/{gunzip,zcat}
38 endef
39
40 define Package/gzip/install
41         $(INSTALL_DIR) $(1)/usr/bin
42         $(CP) $(PKG_INSTALL_DIR)/usr/bin/{gunzip,gzip,zcat} $(1)/usr/bin/
43 endef
44
45 $(eval $(call BuildPackage,gzip))
46