void-packages/srcpkgs/minitube/template

41 lines
1.6 KiB
Bash

# Template file for 'minitube'
pkgname=minitube
version=3.4.2
revision=1
_commit_hash_http=9f6c1ebafc5877936f845723ffd72a475073f237
_commit_hash_media=02ec169a6ba406ced208c52f9ee7fdb85276d484
_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="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-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="d3c18c99fd73c6f66c3def9ae18d2545776a8718367dbd4f9c0a9e0cef38bd8b
51229ea2e9ccaa7bb2784c135ef6547a36a95e1c256de850d72edf64d6a64642
8091b035c839d6e1b50edf0c56b77bc1ecfba81771725435d4ab15101e7c3205
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
}