aboutsummaryrefslogtreecommitdiffstats
path: root/community/mellowplayer/APKBUILD
blob: 3032568f710c54cb7ca0f720bf65e0aa75ce5cd0 (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
37
38
39
40
41
42
43
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=mellowplayer
pkgver=3.6.8
pkgrel=0
pkgdesc="QT based cloud music integration for your desktop"
url="https://colinduquesnoy.gitlab.io/MellowPlayer/"
#arch="all !ppc64le !s390x !armhf !mips !mips64" # mips, 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 mesa-dri-gallium"
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 -B build \
		-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 -C build
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run make -C build test
}

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

sha512sums="d8779d4fa09e053a06c500586fbdbf7a869c2a89f06b181971e7a14b96ccef948761b5e9094333ebc9de241aac2ce065da94dd89b508ba62d4ffc23699e1228b  MellowPlayer-3.6.8.tar.gz"