1 # SPDX-Identifier-License: GPL-3.0-or-later
3 # Copyright (C) 2022-2023 源 文雨 <fumiama@foxmail.com>
5 include $(TOPDIR
)/rules.mk
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
:=f1a7d18f96ce06085911f224f61ce490e5e02c3b179667befef01adaaf7bc659
15 PKG_MAINTAINER
:=源 文雨
<fumiama@foxmail.com
>
16 PKG_LICENSE
:=GPL-3.0
-or-later
17 PKG_LICENSE_FILES
:=LICENSE
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
24 define Package
/base16384
27 TITLE
:=Encode binary files to printable utf16be
28 URL
:=https
://github.com
/fumiama
/base16384
31 define Package
/libbase16384
34 TITLE
:=Base16384 library
35 URL
:=https
://github.com
/fumiama
/base16384
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.
46 define Package
/libbase16384
/description
47 $(call Package
/base16384
/description
)
50 define Package
/base16384
/install
51 $(INSTALL_DIR
) $(1)/usr
/bin
52 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/base16384
$(1)/usr
/bin
/base16384
55 define Package
/libbase16384
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbase16384.so.
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,base16384
))
61 $(eval
$(call BuildPackage
,libbase16384
))