void-packages/srcpkgs/wxFormBuilder/template

36 lines
1.0 KiB
Bash

# Template file for 'wxFormBuilder'
pkgname=wxFormBuilder
version=3.10.1
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="wxWidgets-devel"
short_desc="GUI builder for wxWidgets"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/wxFormBuilder/wxFormBuilder"
changelog="https://raw.githubusercontent.com/wxFormBuilder/wxFormBuilder/master/Changelog.txt"
distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}-source-full.tar.gz"
checksum=1b1bdef794eb16cdbfbddc3d7b840b4d2346c4f0bc558833270b743d64325169
if [ -n "${CROSS_BUILD}" ]; then
configure_args+=" --cross-file=meson-wx.cross"
fi
pre_configure() {
[ -z "${CROSS_BUILD}" ] && return 0
cat > "${XBPS_WRAPPERDIR}/wx-config" <<-EOF
#!/bin/sh
"${XBPS_CROSS_BASE}/usr/bin/wx-config-gtk3" \
--prefix="${XBPS_CROSS_BASE}" "\$@"
EOF
chmod 0755 "${XBPS_WRAPPERDIR}/wx-config"
cat > meson-wx.cross <<-EOF
[binaries]
wx-config = '${XBPS_WRAPPERDIR}/wx-config'
EOF
}