diff --git a/srcpkgs/cross-arm-none-eabi-gdb/template b/srcpkgs/cross-arm-none-eabi-gdb/template new file mode 100644 index 00000000000..6763e0f4283 --- /dev/null +++ b/srcpkgs/cross-arm-none-eabi-gdb/template @@ -0,0 +1,43 @@ +# Template file for 'cross-${_triplet}-${_pkgname}' +_triplet=arm-none-eabi +_pkgname=gdb +pkgname=cross-${_triplet}-${_pkgname} +version=8.2.1 +revision=1 +wrksrc="${_pkgname}-${version}" +build_style=gnu-configure +pycompile_dirs="/usr/share/${_pkgname}" +configure_args=" + --disable-gdbserver + --disable-nls + --disable-werror + --host=${XBPS_CROSS_TRIPLE} + --prefix=/usr + --target=${_triplet} + --with-babeltrace + --with-expat + --with-mpfr + --with-system-readline + --with-system-zlib + --without-isl + $(vopt_with guile) + $(vopt_with python) +" +hostmakedepends="autoconf automake bison flex pkg-config" +makedepends="babeltrace-devel expat-devel mpfr-devel ncurses-devel readline-devel zlib-devel $(vopt_if guile guile-devel) $(vopt_if python 'python3-devel gettext-libs')" +short_desc="GNU Debugger" +maintainer="Ivan Sokolov " +license="GPL-3.0-or-later" +homepage="https://www.gnu.org/software/${_pkgname}" +distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz" +checksum=0a6a432907a03c5c8eaad3c3cffd50c00a40c3a5e3c4039440624bae703f2202 +build_options="guile python" +# don't enable guile and python interfaces until they are moved into +# platform independent packages +build_options_default=" " +nocross=yes + +post_install() { + # resolve conflicts with binutils and native gdb + rm -fr ${DESTDIR}/usr/{share/{locale,gdb,info},include} +}