2023-01-20 08:48:32 +08:00
|
|
|
#
|
2024-02-17 14:17:25 +08:00
|
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
2023-01-20 08:48:32 +08:00
|
|
|
#
|
2024-02-17 14:17:25 +08:00
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
2023-01-20 08:48:32 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=airconnect
|
2024-03-15 16:19:30 +08:00
|
|
|
PKG_VERSION:=1.8.3
|
2024-02-17 14:17:25 +08:00
|
|
|
PKG_RELEASE=1
|
2023-01-20 08:48:32 +08:00
|
|
|
|
2024-02-17 14:17:25 +08:00
|
|
|
PKG_SOURCE:=AirConnect-$(PKG_VERSION).zip
|
|
|
|
PKG_SOURCE_URL:=https://github.com/philippe44/AirConnect/releases/download/$(PKG_VERSION)/
|
2024-03-15 16:19:30 +08:00
|
|
|
PKG_HASH:=f103595c522b0a4eeca8cb02301a35005d069d4298991ae82e9c312ddb7c8270
|
2023-01-20 08:48:32 +08:00
|
|
|
|
2024-02-17 14:17:25 +08:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/airconnect-$(PKG_VERSION)
|
2023-01-20 08:48:32 +08:00
|
|
|
|
2024-02-17 14:17:25 +08:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILE:=LICENSE
|
|
|
|
PKG_MAINTAINER:=sbwml <admin@cooluc.com>
|
2023-01-20 08:48:32 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)
|
|
|
|
SECTION:=multimedia
|
|
|
|
CATEGORY:=Multimedia
|
|
|
|
TITLE:=AirConnect
|
|
|
|
URL:=https://github.com/philippe44/AirConnect
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/description
|
2024-02-17 14:17:25 +08:00
|
|
|
Use AirPlay to stream to UPnP/Sonos & Chromecast devices
|
2023-01-20 08:48:32 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
|
|
/etc/config/airconnect
|
|
|
|
endef
|
|
|
|
|
2024-02-17 14:17:25 +08:00
|
|
|
define Build/Prepare
|
|
|
|
unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/AirConnect-$(PKG_VERSION).zip
|
2023-01-20 08:48:32 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/config $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/airconnect.init $(1)/etc/init.d/airconnect
|
2024-02-17 14:17:25 +08:00
|
|
|
$(INSTALL_CONF) ./files/airconnect.config $(1)/etc/config/airconnect
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/aircast-linux-$(ARCH)-static $(1)/usr/bin/aircast
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/airupnp-linux-$(ARCH)-static $(1)/usr/bin/airupnp
|
2023-01-20 08:48:32 +08:00
|
|
|
endef
|
|
|
|
|
2024-02-17 14:17:25 +08:00
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|