squashfs-tools-ng: add package
authorPaul Spooren <mail@aparcar.org>
Sat, 11 Apr 2020 07:53:48 +0000 (21:53 -1000)
committerPaul Spooren <mail@aparcar.org>
Sun, 19 Apr 2020 23:05:27 +0000 (13:05 -1000)
The `squashfs-tools-ng` is a reimplementation of `squashfs-tools` of
which a fork called `squashfskit` is currently used withn OpenWrt.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
tools/squashfs-tools-ng/Makefile [new file with mode: 0644]

diff --git a/tools/squashfs-tools-ng/Makefile b/tools/squashfs-tools-ng/Makefile
new file mode 100644 (file)
index 0000000..bc5fec2
--- /dev/null
@@ -0,0 +1,26 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=squashfs-tools-ng
+PKG_VERSION:=0.9
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/AgentD/squashfs-tools-ng/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=da94cadbfa0c8e7cb9af7482e499ed1c51cb38cfd1e6eee63afbae7debec8a61
+
+PKG_FIXUP:=autoreconf
+
+include $(INCLUDE_DIR)/host-build.mk
+
+define Host/Install
+       $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/.libs/gensquashfs $(STAGING_DIR_HOST)/bin/gensquashfs
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/.libs/tar2sqfs $(STAGING_DIR_HOST)/bin/tar2sqfs
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/.libs/rdsquashfs $(STAGING_DIR_HOST)/bin/rdsquashfs
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/.libs/libsquashfs* $(STAGING_DIR_HOST)/lib/
+endef
+
+define Host/Clean
+endef
+
+$(eval $(call HostBuild))