aboutsummaryrefslogblamecommitdiffstats
path: root/community/plasmatube/APKBUILD
blob: 476eefc6b2f1c34ec53466a69acf64f77a555a60 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                       
                    
        
                                                  
                                                          


                                             
                                                     


















                                      
                                                                                                      



















                                               
            
                                                                                                                                                                                            
 
# Contributor: Ralf Rachinger <ralfrachinger@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasmatube
pkgver=0_git20210719
pkgrel=0
_commit="1b8b8b96f1f545b45ba46af4c181a996269ab0a8"
pkgdesc="Kirigami YouTube video player based on Invidious"
# armhf blocked by extra-cmake-modules
# mips64, s390x and riscv64 blocked by polkit
arch="all !armhf !s390x !mips64 !riscv64"
url="https://invent.kde.org/plasma-mobile/plasmatube"
license="GPL-3.0-or-later AND CC0-1.0"
depends="
	gst-libav
	gst-plugins-good
	gst-plugins-good-qt
	kcoreaddons
	kdeclarative
	ki18n
	kirigami2
	qt5-qtmultimedia
	qt5-qtquickcontrols2
	"
makedepends="
	extra-cmake-modules
	ki18n-dev
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtquickcontrols2-dev
	"
source="https://invent.kde.org/plasma-mobile/plasmatube/-/archive/$_commit/plasmatube-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="
0c508d62a9854e411e2fe1615dee94e092ae45139559dadac72c7c230775b47ebf1c1a7ae2a2ef9b927fee9bf772b205db2962202af091df4874c878125964cb  plasmatube-1b8b8b96f1f545b45ba46af4c181a996269ab0a8.tar.gz
"