mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 11:05:18 +00:00
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# This file is used by OpenWRT SDK buildsystem to package the application for routers.
|
|
# This file provides the kernel model version of youtubeUnblock
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=youtubeUnblock
|
|
PKG_VERSION:=0.3.2
|
|
PKG_REV:=5870df44df86e2e642465b56a8392a3a77b4f9e0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/youtubeUnblock
|
|
SECTION:=net
|
|
CATEGORY:=Networking
|
|
TITLE:=kmod youtubeUnblock
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
|
FILES:=$(PKG_BUILD_DIR)/kyoutubeUnblock.$(LINUX_KMOD_SUFFIX)
|
|
URL:=https://github.com/Waujito/youtubeUnblock
|
|
MAINTAINER:=Vadim Vetrov <vetrovvd@gmail.com>
|
|
endef
|
|
|
|
define Build/Prepare
|
|
$(Build/Prepare/Default)
|
|
$(Build/Patch)
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(LINUX_DIR) \
|
|
ARCH="$(LINUX_KARCH)" \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
M="$(PKG_BUILD_DIR)" \
|
|
CONFIG_kyoutubeUnblock=m \
|
|
modules
|
|
endef
|
|
|
|
define KernelPackage/youtubeUnblock/install
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/kmod_youtubeUnblock $(1)/etc/init.d/kmod_youtubeUnblock
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,youtubeUnblock))
|