void-packages/srcpkgs/bomi/template
q66 a626a97d49 bomi: use python2 for build
For one, python is required on host for waf (to build mpv). However,
python3.8 does not work with this, so use python2 for now.
2020-01-06 15:42:46 +01:00

35 lines
1.4 KiB
Bash

# Template file for 'bomi'
pkgname=bomi
version=0.9.11
revision=14
build_style=configure
configure_args="--disable-systemd --release --prefix=/usr"
# does not build using py3.8 because of waf issues
hostmakedepends="python pkg-config curl perl"
makedepends="qt5-devel MesaLib-devel ffmpeg-devel mpg123-devel libass-devel
libdvdread-devel libdvdnav-devel libbluray-devel icu-devel libxcb-devel
xcb-util-wm-devel libva-devel libva-glx-devel alsa-lib-devel libvdpau-devel
qt5-tools-devel qt5-declarative-devel qt5-svg-devel qt5-x11extras-devel
fribidi-devel libcdio-devel libcdio-paranoia-devel pulseaudio-devel
samba-devel libchardet-devel"
depends="qt5-quickcontrols"
short_desc="Powerful and easy-to-use Qt5 multimedia player"
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://bomi-player.github.io/"
changelog="https://raw.githubusercontent.com/xylosper/bomi/master/CHANGES.txt"
distfiles="https://github.com/xylosper/bomi/archive/v${version}.tar.gz"
checksum=c76ac45733cdafa7003bbc178e5a90a683df9aec30cd85f188bb17c7af9e282e
nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/1382/steps/shell_3/logs/stdio
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # There is no <sys/sysctl.h> in musl libc
sed -e "s;<sys/sysctl\.h>;<linux/sysctl.h>;" \
-i ${wrksrc}/src/bomi/os/x11.cpp
;;
esac
}
do_install() {
make DEST_DIR=${DESTDIR} install
}