Skip to content

Commit

Permalink
Makefile, CI: remove snapserver, trying to get at least a snapclient.ipk
Browse files Browse the repository at this point in the history
  • Loading branch information
azrdev committed Jun 24, 2024
1 parent 69cc0a8 commit d660101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/openwrt-ipkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
ARCH: ${{ matrix.arch }}
FEED_DIR: "$GITHUB_WORKSPACE/openwrt/"
PACKAGES: snapclient snapserver
PACKAGES: snapclient
V: sc # verbosity, see https://openwrt.org/docs/techref/buildroot#warnings_errors_and_tracing
# avoid bug in git diff invocation
NO_REFRESH_CHECK: 1
Expand Down
26 changes: 3 additions & 23 deletions openwrt/snapcast/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

include $(TOPDIR)/rules.mk

PKG_NAME := snapcast
PKG_NAME := snapclient
PKG_VERSION := 0.28.0
PKG_RELEASE := $(PKG_SOURCE_VERSION)
PKG_USE_MIPS16 := 0
Expand Down Expand Up @@ -36,38 +36,18 @@ define Package/snapcast/description/Default
Synchronous audio player
endef

define Package/snapserver
$(call Package/snapcast/Default)
TITLE += Snapserver
DEPENDS += +AUDIO_SUPPORT:alsa-lib +libvorbis +libsoxr
endef

define Package/snapclient
$(call Package/snapcast/Default)
TILE += Snapclient
DEPENDS += +libvorbisidec +libsoxr
endef

define Package/snapserver/description
$(call Package/snapcast/description/Default)
Snapcast server
DEFAULT := y
endef

define Package/snapclient/description
$(call Package/snapcast/description/Default)
Snapcast client
endef

define Package/snapserver/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/snapserver $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/snapserver.init $(1)/etc/init.d/snapserver
$(INSTALL_DIR) $(1)/etc/default
$(INSTALL_BIN) $(PKG_BUILD_DIR)/extras/package/debian/snapserver.default $(1)/etc/default/snapserver
$(INSTALL_BIN) $(PKG_BUILD_DIR)/server/etc/snapserver.conf $(1)/etc/snapserver.conf
endef

define Package/snapclient/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/snapclient $(1)/usr/bin/
Expand All @@ -77,5 +57,5 @@ define Package/snapclient/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/extras/package/debian/snapclient.default $(1)/etc/default/snapclient
endef

$(eval $(call BuildPackage,snapserver))
$(eval $(call BuildPackage,snapclient))

0 comments on commit d660101

Please sign in to comment.