dmidecode: moved to github
[packages.git] / utils / bsdiff / Makefile
1 #
2 # Copyright (C) 2011 Alexander Gordeev <lasaine@lvk.cs.msu.su>
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:=bsdiff
11 PKG_VERSION:=4.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.daemonology.net/bsdiff
16 PKG_MD5SUM:=e6d812394f0e0ecc8d5df255aa1db22a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/bsdiff
21   SECTION:=utils
22   CATEGORY:=Utilities
23   DEPENDS:=+libbz2
24   URL:=http://www.daemonology.net/bsdiff
25   TITLE:=Tools for building and applying patches to binary files
26 endef
27
28 define Package/bsdiff/description
29  bsdiff and bspatch are tools for building and applying patches to binary
30  files. By using suffix sorting (specifically, Larsson and Sadakane's
31  qsufsort) and taking advantage of how executable files change, bsdiff
32  routinely produces binary patches 50-80% smaller than those produced by
33  Xdelta, and 15% smaller than those produced by .RTPatch (a $2750/seat
34  commercial patch tool).
35 endef
36
37 define Package/bsdiff/install
38         $(INSTALL_DIR) $(1)/usr/bin
39         $(INSTALL_BIN) $(PKG_BUILD_DIR)/bsdiff $(PKG_BUILD_DIR)/bspatch $(1)/usr/bin/
40 endef
41
42 $(eval $(call BuildPackage,bsdiff))