wireless-regdb: bump to latest release 2020-04-29
[openwrt/staging/wigyori.git] / package / firmware / wireless-regdb / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=wireless-regdb
4 PKG_VERSION:=2020.04.29
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=@KERNEL/software/network/wireless-regdb/
9 PKG_HASH:=89fd031aed5977c219a71501e144375a10e7c90d1005d5d086ea7972886a2c7a
10
11 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/wireless-regdb
16 PKGARCH:=all
17 SECTION:=firmware
18 CATEGORY:=Firmware
19 URL:=https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/
20 TITLE:=Wireless Regulatory Database
21 endef
22
23 define Build/Compile
24 $(STAGING_DIR_HOST)/bin/$(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
25 endef
26
27 define Package/wireless-regdb/install
28 $(INSTALL_DIR) $(1)/lib/firmware
29 $(CP) $(PKG_BUILD_DIR)/regulatory.db $(1)/lib/firmware/
30 endef
31
32 $(eval $(call BuildPackage,wireless-regdb))