41 lines
1.6 KiB
Bash
41 lines
1.6 KiB
Bash
# Template file for 'minitube'
|
|
pkgname=minitube
|
|
version=3.0
|
|
revision=1
|
|
_commit_hash_http=e790e31e6843c6ee8e97cd7e41e9eb9e024a9e2c
|
|
_commit_hash_media=157456a8af02e5d7524b1bb54ba53794e37ed12a
|
|
_commit_hash_idle=6aa092da64a011e445bf31cf31c0cd8dda4c64ff
|
|
build_style=qmake
|
|
hostmakedepends="qt5-tools qt5-qmake git"
|
|
makedepends="qt5-devel phonon-qt5-devel qt5-script-devel qt5-declarative-devel
|
|
qt5-plugin-sqlite qt5-x11extras-devel mpv-devel"
|
|
depends="virtual?phonon-qt5-backend desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Qt5-based YouTube client"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-3-or-later"
|
|
homepage="http://flavio.tordini.org/minitube"
|
|
distfiles="https://github.com/flaviotordini/minitube/archive/${version}.tar.gz
|
|
https://github.com/flaviotordini/http/archive/${_commit_hash_http}.tar.gz
|
|
https://github.com/flaviotordini/media/archive/${_commit_hash_media}.tar.gz
|
|
https://github.com/flaviotordini/idle/archive/${_commit_hash_idle}.tar.gz"
|
|
checksum="682f6f45fc42fc28ca36e65a1cc6ee82d7982e45db3a786c50823e5030b508ef
|
|
d0596eed14dc9e213443646de7beb4a9b439ad0a568b560f668db83751be3d98
|
|
98c8fb79044fe90bf92ee08f6f00ca2a68e17f36c0881ebb591e182e4b1d4f02
|
|
597156e1f7ac3b8d8bdd251008cc0d10487c120462576088eed69425048d4bde"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-x11extras-devel qt5-declarative-devel"
|
|
fi
|
|
|
|
post_extract() {
|
|
mv -T "../http-${_commit_hash_http}" lib/http
|
|
mv -T "../media-${_commit_hash_media}" lib/media
|
|
mv -T "../idle-${_commit_hash_idle}" lib/idle
|
|
}
|
|
|
|
pre_configure() {
|
|
# Provided by Gottox
|
|
local _api_key=AIzaSyBzMj41taMuHLAF95-y9cTXL4JpPGqMORk
|
|
sed -i "1i DEFINES += APP_GOOGLE_API_KEY=\"$_api_key\"" minitube.pro
|
|
}
|