aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nymphcast/APKBUILD
blob: c00c9ad3d5ca8847a61e337107cfc72f4da20e09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nymphcast
pkgver=0_git20200412
pkgrel=0
_commit="7f065b77e2a6ba156cf139b8d1b755cbddded01f"
arch="all !mips !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"
depends="avahi"
depends_dev="nymphrpc-dev"
makedepends="$depends_dev sdl2-dev sdl2_image-dev ffmpeg-dev openssl-dev"
source="https://github.com/MayaPosch/NymphCast/archive/$_commit/nymphcast-$_commit.tar.gz"
subpackages="$pkgname-static $pkgname-dev $pkgname-server $pkgname-server-openrc"
options="!check" # No tests
builddir="$srcdir/NymphCast-$_commit"

build() {

	make -C src/client_lib
	make -C src/server
}

package() {
	DESTDIR="$pkgdir" PREFIX=/usr make -C src/client_lib install
	DESTDIR="$pkgdir" PREFIX=/usr make -C src/server install-openrc
}

server() {
	pkgdesc="$pkgdesc (server)"

	DESTDIR="$subpkgdir" PREFIX=/usr make -C "$builddir"/src/server install
}

sha512sums="c4fa4bb6049742d6579641204cfc842077e1d8aa6ae126b3599dd8dc4c460b459624424b21bac3c9c6b0337b12aa80135b9a06d3d017ac02c1d35742c369a6d8  nymphcast-7f065b77e2a6ba156cf139b8d1b755cbddded01f.tar.gz"