base16384: bump to version 2.3.1
[feed/packages.git] / utils / base16384 / Makefile
1 # SPDX-Identifier-License: GPL-3.0-or-later
2 #
3 # Copyright (C) 2022-2024 源 文雨 <fumiama@foxmail.com>
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=base16384
8 PKG_VERSION:=2.3.1
9 PKG_RELEASE:=1
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_URL:=https://codeload.github.com/fumiama/base16384/tar.gz/v$(PKG_VERSION)?
13 PKG_HASH:=71ee39510c8c687254315ccc1aa5de601a5e2a2554b6db843f3874c12415a77a
14
15 PKG_MAINTAINER:=源 文雨 <fumiama@foxmail.com>
16 PKG_LICENSE:=GPL-3.0-or-later
17 PKG_LICENSE_FILES:=LICENSE
18
19 CMAKE_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/base16384
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=Encode binary files to printable utf16be
28 URL:=https://github.com/fumiama/base16384
29 endef
30
31 define Package/libbase16384
32 SECTION:=libs
33 CATEGORY:=Libraries
34 TITLE:=Base16384 library
35 URL:=https://github.com/fumiama/base16384
36 endef
37
38 define Package/base16384/description
39 There are 16384 Chinese characters (from \u4E00 to \u8DFF)
40 as the "alphabet", just like what base64 did.
41 If length of the data has a remainder after mod 7,
42 an unicode Chinese character \u3Dxx will be appended to present it
43 with xx ranging from 01 to 06.
44 endef
45
46 define Package/libbase16384/description
47 $(call Package/base16384/description)
48 endef
49
50 define Package/base16384/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/base16384 $(1)/usr/bin/base16384
53 endef
54
55 define Package/libbase16384/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbase16384.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,base16384))
61 $(eval $(call BuildPackage,libbase16384))