nautilus-python: fix cross-build

Close: #27416
This commit is contained in:
Nathan Owens 2020-12-24 22:04:09 -06:00 committed by Đoàn Trần Công Danh
parent c5c4c8dc0c
commit 8e218b3f77

View file

@ -1,11 +1,13 @@
# Template file for 'nautilus-python' # Template file for 'nautilus-python'
pkgname=nautilus-python pkgname=nautilus-python
version=1.2.3 version=1.2.3
revision=3 revision=4
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-gtk-doc PYTHON=python3" configure_args="$(vopt_enable gtk_doc gtk-doc) PYTHON=python3
hostmakedepends="automake libtool pkg-config which" PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/${py3_inc}
makedepends="python3-devel python3-gobject-devel gtk-doc nautilus-devel" PYTHON_LIBS=-lpython${py3_ver}"
hostmakedepends="automake libtool pkg-config which python3"
makedepends="python3-devel python3-gobject-devel nautilus-devel"
depends="nautilus python3-gobject" depends="nautilus python3-gobject"
short_desc="Python bindings for the Nautilus extension framework" short_desc="Python bindings for the Nautilus extension framework"
maintainer="Nafis <mnabid.25@outlook.com>" maintainer="Nafis <mnabid.25@outlook.com>"
@ -13,6 +15,10 @@ license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/NautilusPython" homepage="https://wiki.gnome.org/Projects/NautilusPython"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=073ce0297282259937ab473d189b97a04f42b97197c9292fc3bde9d135282098 checksum=073ce0297282259937ab473d189b97a04f42b97197c9292fc3bde9d135282098
nocross="could not find Python headers"
CFLAGS="-fcommon" CFLAGS="-fcommon"
build_options="gtk_doc"
if [ ! "$CROSS_BUILD" ]; then
build_options_default="gtk_doc"
fi