ef593cc0be9b26696cef6dbc2482b093d373dd70
[feed/packages.git] / utils / hexedit / Makefile
1 #
2 # Copyright (C) 2022 Nita Vesa
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:=hexedit
11 PKG_VERSION:=1.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/pixel/hexedit.git
16 PKG_SOURCE_VERSION:=$(PKG_VERSION)
17 PKG_MIRROR_HASH:=138f8aff0466a33f33be43e25e7a47ba48216c0b2d41cbb6cc23ca848bd8a564
18
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_MAINTAINER:=Nita Vesa <werecatf@outlook.com>
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25 PKG_FIXUP:=autoreconf
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/hexedit
30 TITLE:=Viewer and editor in hexadecimal or ASCII
31 SUBMENU:=Editors
32 SECTION:=utils
33 CATEGORY:=Utilities
34 URL:=http://rigaux.org/hexedit.html
35 DEPENDS:=+libncurses
36 endef
37
38 define Package/hexedit/description
39 Viewer and editor in hexadecimal or ASCII for files or devices
40
41 hexedit shows a target both in hexadecimal and in ASCII. This target can be
42 a device or a file. You can edit the target and search through it. There are
43 also copy&paste and save to file functions. Is allowed truncating or appending
44 to the target. All modifications are shown in bold.
45
46 hexedit is ideal to edit or inspect very large files or devices, as hard disks
47 or its partitions, flash drives, etc. These elements will not be wholly read
48 because hexedit loads a piece at a time.
49
50 hexedit can be used by programmers in several activities. It also is useful
51 for debugging, forensics investigations and recovering from digital disasters.
52 endef
53
54 define Package/hexedit/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/hexedit $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,hexedit))