mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-08 13:03:17 +02:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template file for 'Aegisub'
|
|
pkgname=Aegisub
|
|
version=3.4.2
|
|
revision=3
|
|
build_style=meson
|
|
configure_args="-Dsystem_luajit=true"
|
|
hostmakedepends="pkg-config gettext meson ninja LuaJIT"
|
|
makedepends="libass-devel zlib-devel icu-devel boost-devel-minimal
|
|
libboost_locale libboost_thread
|
|
wxWidgets-gtk3-devel MesaLib-devel LuaJIT-devel fontconfig-devel ffmpeg6
|
|
ffmpeg6-devel libffms2-devel fftw-devel hunspell-devel uchardet-devel gtest-devel
|
|
pulseaudio-devel alsa-lib-devel libopenal-devel portaudio-devel libcurl-devel"
|
|
short_desc="Cross-platform advanced subtitle editor"
|
|
maintainer="Komeil Parseh <komeilparseh@disroot.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/TypesettingTools/Aegisub"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum="38731ec76392fe763ce34e34cda6ee233802cf20ef3f380a3998da35a893a5c4"
|
|
|
|
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
pre_configure() {
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
|
cat > cross-wx.ini <<-EOF
|
|
[binaries]
|
|
wx-config = ['${XBPS_WRAPPERDIR}/wx-config-gtk3']
|
|
EOF
|
|
configure_args+=" --cross-file=cross-wx.ini"
|
|
fi
|
|
}
|
|
|
|
pre_build() {
|
|
cat > build/git_version.h <<-EOF
|
|
#define BUILD_GIT_VERSION_NUMBER 0
|
|
#define BUILD_GIT_VERSION_STRING "voidlinux"
|
|
#define TAGGED_RELEASE 0
|
|
#define INSTALLER_VERSION "0.0.0"
|
|
#define RESOURCE_BASE_VERSION 0, 0, 0
|
|
EOF
|
|
export FORCE_GIT_VERSION="$version"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENCE
|
|
}
|