17518d46eed169ddf5a7b223bcbfa48528f0f1d6
[openwrt/svn-archive/archive.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.12
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gzip/
16 PKG_MD5SUM:=b5bac2d21840ae077e0217bc5e4845b1
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