aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mellowplayer/APKBUILD
blob: 4e6e21aca3fe0d8a396d4de7dd274db5776a291f (plain)
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
37
38
39
40
41
42
43
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=mellowplayer
pkgver=3.5.10
pkgrel=1
pkgdesc="QT based cloud music integration for your desktop"
url="https://colinduquesnoy.gitlab.io/MellowPlayer/"
arch="all !ppc64le !s390x !armhf" # ppc64le and s390x blocked by qt5-qtwebengine missing, armhf blocked by qt5-qtdeclarative
license="GPL-2.0-or-later"
depends="qt5-qtgraphicaleffects qt5-qtquickcontrols qt5-qtsvg qt5-qtwayland"
makedepends="cmake qt5-qtdeclarative-dev qt5-qtquickcontrols2-dev qt5-qtbase-mysql
	qt5-qtbase-sqlite qt5-qtbase-postgresql qt5-qtbase-tds qt5-qtbase-odbc
	qt5-qtsvg-dev qt5-qttools-dev qt5-qtlocation-dev qt5-qtwebengine-dev
	qt5-qtwebchannel-dev libnotify-dev"
checkdepends="xvfb-run"
source="https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/$pkgver/MellowPlayer-$pkgver.tar.gz"
builddir="$srcdir/MellowPlayer-$pkgver"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DBUILD_TESTS=ON \
		$CMAKE_CROSSOPTS
	make
}

check() {
	xvfb-run make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0247ae225acc57b31d3a6f490a674be2d14b82128bda834ed830a1934b1bb0841612c2049b5fa32b36678d0d29399b6e38afd065b1d41ff373680302c852f45d  MellowPlayer-3.5.10.tar.gz"