mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-18 15:17:01 +02:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template file for 'gnubg'
|
|
pkgname=gnubg
|
|
version=1.08.003
|
|
revision=5
|
|
build_style=gnu-configure
|
|
configure_args="--disable-cputest ax_cv_gcc_x86_cpuid_0x00000001=6000000
|
|
--with-gtk3 --localedir=/usr/share/locale"
|
|
hostmakedepends="flex gdk-pixbuf-devel gettext pkg-config python3-devel"
|
|
makedepends="libcurl-devel libglib-devel gtk+3-devel libepoxy-devel python3-devel
|
|
glu-devel libcanberra-devel readline-devel readline sqlite-devel"
|
|
depends="python3"
|
|
short_desc="GNU Backgammon game"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.gnu.org/software/gnubg/"
|
|
distfiles="${GNU_SITE}/gnubg/${pkgname}-release-${version}-sources.tar.gz"
|
|
checksum=6f7d969b13cfff786fba90ff8cc5e5d564b97f4f0aa69afe4f3838f18c445979
|
|
LDLIBS="-lm -lreadline -lpython${py3_ver}"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" ${pkgname}"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) configure_args+=" --enable-simd=sse2" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
makeweights < gnubg.weights > gnubg.wd
|
|
makebearoff -o 6 -s 7999999 -f gnubg_os0.bd
|
|
makebearoff -t 6x6 -f gnubg_ts0.bd
|
|
|
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python${py3_ver}"
|
|
fi
|
|
}
|
|
|
|
post_configure() {
|
|
vsed -i -e 's:^localedir = .*:localedir = /usr/share/locale:' \
|
|
-e 's:^gnulocaledir = .*:gnulocaledir = /usr/share/locale:' po/Makefile
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/lib/locale
|
|
}
|