Commit aa016b05 authored by Bart Ribbers's avatar Bart Ribbers
Browse files

community/nymphcast: fix init script paths

parent 8a60aafd
Pipeline #88886 failed with stages
in 2 minutes and 44 seconds
diff --git a/src/server/Makefile b/src/server/Makefile
index ed10378..7502d8e 100644
--- a/src/server/Makefile
+++ b/src/server/Makefile
@@ -71,10 +71,10 @@ else
CONFDIR := /etc
endif
-SED_REPLACE := -e 's:@BIN@:$(DESTDIR)$(PREFIX)/bin/$(TARGET_BIN)$(OUTPUT):g' \
- -e 's:@CONFIG@:$(DESTDIR)$(CONFDIR)/nymphcast/nymphcast_config.ini:g' \
- -e 's:@APPS@:$(DESTDIR)$(PREFIX)/share/nymphcast/apps/:g' \
- -e 's:@WALLPAPERS@:$(DESTDIR)$(PREFIX)/share/nymphcast/wallpapers/:g'
+SED_REPLACE := -e 's:@BIN@:$(PREFIX)/bin/$(OUTPUT):g' \
+ -e 's:@CONFIG@:$(CONFDIR)/nymphcast/nymphcast_config.ini:g' \
+ -e 's:@APPS@:$(PREFIX)/share/nymphcast/apps/:g' \
+ -e 's:@WALLPAPERS@:$(PREFIX)/share/nymphcast/wallpapers/:g'
all: makedir bin/$(TARGET_BIN)$(OUTPUT)
@@ -131,6 +131,7 @@ install-systemd:
install-openrc:
install -d $(DESTDIR)$(CONFDIR)/init.d/
sed ${SED_REPLACE} openrc/nymphcast > $(DESTDIR)$(CONFDIR)/init.d/nymphcast
+ chmod +x $(DESTDIR)$(CONFDIR)/init.d/nymphcast
# Construct an archive for Raspbian: audio-only, or full.
......@@ -2,8 +2,8 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nymphcast
pkgver=0.1_alpha4
pkgrel=0
arch="all !mips !mips64" # blocked by nymphrpc -> poco
pkgrel=1
arch="all !mips64" # blocked by nymphrpc -> poco
url="http://nyanko.ws/product_nymphcast.php"
pkgdesc="Audio and video casting system with support for custom applications"
license="BSD-3-Clause"
......@@ -11,7 +11,9 @@ depends="avahi"
depends_dev="nymphrpc-dev"
makedepends="$depends_dev sdl2-dev sdl2_image-dev ffmpeg-dev openssl-dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-server $pkgname-server-openrc"
source="https://github.com/MayaPosch/NymphCast/archive/v${pkgver/_/-}/nymphcast-v${pkgver/_/-}.tar.gz"
source="https://github.com/MayaPosch/NymphCast/archive/v${pkgver/_/-}/nymphcast-v${pkgver/_/-}.tar.gz
0001-Fix-openrc-paths.patch
"
options="!check" # No tests
builddir="$srcdir/NymphCast-${pkgver/_/-}"
......@@ -22,14 +24,17 @@ build() {
}
package() {
DESTDIR="$pkgdir" PREFIX=/usr make -C src/client_lib install
DESTDIR="$pkgdir" PREFIX=/usr make -C src/server install-openrc
make DESTDIR="$pkgdir" PREFIX=/usr -C src/client_lib install
make DESTDIR="$pkgdir" PREFIX=/usr -C src/server install-openrc
}
server() {
pkgdesc="$pkgdesc (server)"
DESTDIR="$subpkgdir" PREFIX=/usr make -C "$builddir"/src/server install
make DESTDIR="$subpkgdir" PREFIX=/usr -C "$builddir"/src/server install
}
sha512sums="8032f2a520508be1ce26e9c16eb3a61f43a6ac0b9c792873a5520627e035bf14684aa87d7900da15028b190a4bbddbab8d15a9a7bdc6e9c36888aed50e63d819 nymphcast-v0.1-alpha4.tar.gz"
sha512sums="
8032f2a520508be1ce26e9c16eb3a61f43a6ac0b9c792873a5520627e035bf14684aa87d7900da15028b190a4bbddbab8d15a9a7bdc6e9c36888aed50e63d819 nymphcast-v0.1-alpha4.tar.gz
9236973313563b3b6bbe10df11684d85c23114d9b5423e4ad1360c838f7e4cddc4a558896faee2d02a03d2874bdd941f7862aa58b4ceea5908b2d96b0940c7a2 0001-Fix-openrc-paths.patch
"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment