mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 08:44:39 +01:00
gnulib-l10n: add package
This package is a supplement for part of gettext that uses gnulib sources, and includes the localizations for messages specifically in gnulib files. This is being added as a separate package instead of a build target of gnulib because that method of acquiring the localizations requires the use of gettext and would be a reverse dependency. Signed-off-by: Michael Pratt <mcpratt@pm.me> Link: https://github.com/openwrt/openwrt/pull/16522 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
1a253a2bb5
commit
246eba7528
1 changed files with 37 additions and 0 deletions
37
package/libs/gnulib-l10n/Makefile
Normal file
37
package/libs/gnulib-l10n/Makefile
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=gnulib-l10n
|
||||||
|
PKG_CPE_ID:=cpe:/a:gnu:$(PKG_NAME)
|
||||||
|
PKG_VERSION:=20241231
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=@GNU/gnulib
|
||||||
|
PKG_HASH:=155752ba6796aa294cde87c2bf0e771a5891eeeacb131345be0e080a3ec0ceea
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/gnulib-l10n
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=GNU Gnulib localization translation files
|
||||||
|
URL:=http://www.gnu.org/software/gnulib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/gnulib-l10n/description
|
||||||
|
Localizations (translations) of messages for GNU gnulib code.
|
||||||
|
endef
|
||||||
|
|
||||||
|
HOST_CONFIGURE_ARGS += \
|
||||||
|
--localedir=$(HOST_BUILD_PREFIX)/share/locale
|
||||||
|
|
||||||
|
define Host/Uninstall
|
||||||
|
-$(call Host/Compile/Default,uninstall)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/gnulib-l10n/install
|
||||||
|
$(call Build/Install/Default,install SUBDIRS='$(PKG_SUBDIRS)')
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call HostBuild))
|
||||||
|
$(eval $(call BuildPackage,gnulib-l10n))
|
||||||
Loading…
Add table
Reference in a new issue