40 lines
929 B
Makefile
40 lines
929 B
Makefile
# SPDX-Identifier-License: GPL-3.0-only
|
|
#
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=lux
|
|
PKG_VERSION:=0.19.0
|
|
PKG_RELEASE:=6
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/iawia002/lux/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=skip
|
|
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
|
|
GO_PKG:=github.com/iawia002/lux
|
|
GO_PKG_BUILD_PKG:=$$(GO_PKG)
|
|
GO_PKG_LDFLAGS:=-s -w
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
|
|
|
|
define Package/lux
|
|
SECTION:=multimedia
|
|
CATEGORY:=Multimedia
|
|
TITLE:=A fast, simple and clean video downloader
|
|
URL:=https://github.com/iawia002/lux
|
|
DEPENDS:=$(GO_ARCH_DEPENDS) +ffmpeg
|
|
endef
|
|
|
|
$(eval $(call GoBinPackage,lux))
|
|
$(eval $(call BuildPackage,lux))
|