packages/utils/base16384/Makefile
源 文雨 823a53c4a2 base16384: bump to version 2.2.5
Signed-off-by: 源 文雨 <fumiama@foxmail.com>
2023-12-20 19:46:54 +08:00

61 lines
1.6 KiB
Makefile

# SPDX-Identifier-License: GPL-3.0-or-later
#
# Copyright (C) 2022-2023 源 文雨 <fumiama@foxmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=base16384
PKG_VERSION:=2.2.5
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/fumiama/base16384/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=f1a7d18f96ce06085911f224f61ce490e5e02c3b179667befef01adaaf7bc659
PKG_MAINTAINER:=源 文雨 <fumiama@foxmail.com>
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=LICENSE
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/base16384
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Encode binary files to printable utf16be
URL:=https://github.com/fumiama/base16384
endef
define Package/libbase16384
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Base16384 library
URL:=https://github.com/fumiama/base16384
endef
define Package/base16384/description
There are 16384 Chinese characters (from \u4E00 to \u8DFF)
as the "alphabet", just like what base64 did.
If length of the data has a remainder after mod 7,
an unicode Chinese character \u3Dxx will be appended to present it
with xx ranging from 01 to 06.
endef
define Package/libbase16384/description
$(call Package/base16384/description)
endef
define Package/base16384/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/base16384 $(1)/usr/bin/base16384
endef
define Package/libbase16384/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbase16384.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,base16384))
$(eval $(call BuildPackage,libbase16384))