Aegisub: mark broken on musl, fix on wayland

This commit is contained in:
Rasmus Thomsen 2018-10-05 19:33:58 +00:00 committed by maxice8
parent 94d8969704
commit 310cb5d6bf

View file

@ -1,7 +1,7 @@
# Template file for 'Aegisub' # Template file for 'Aegisub'
pkgname=Aegisub pkgname=Aegisub
version=3.2.2 version=3.2.2
revision=2 revision=3
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-update-checker --with-alsa --with-ffms2 configure_args="--disable-update-checker --with-alsa --with-ffms2
--with-wx-config=wx-config-gtk3 $(vopt_with fftw fftw3) $(vopt_with openal) --with-wx-config=wx-config-gtk3 $(vopt_with fftw fftw3) $(vopt_with openal)
@ -28,6 +28,7 @@ desc_option_portaudio="Enable support for portaudio"
LDFLAGS+=" -pthread" LDFLAGS+=" -pthread"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*musl) broken="segfaults on startup";;
armv7l*|armv6l*) broken="error: invalid conversion from 'const char**' to 'char**' [-fpermissive]" armv7l*|armv6l*) broken="error: invalid conversion from 'const char**' to 'char**' [-fpermissive]"
esac esac
@ -39,10 +40,14 @@ post_extract() {
} }
pre_configure() { pre_configure() {
# Aegisub fails to start on Wayland, so we have to force GDK to start it
# with the x11 backend
sed "s/Exec=@AEGISUB_COMMAND@ %f/Exec=env GDK_BACKEND=x11 @AEGISUB_COMMAND@ %f/" -i \
packages/desktop/aegisub.desktop.template.in
autoreconf -fi autoreconf -fi
} }
do_install() { post_install() {
make DESTDIR=$DESTDIR install
vlicense LICENCE vlicense LICENCE
} }