diff --git a/common/shlibs b/common/shlibs index 7e9850b5c01..309e290f67e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -77,6 +77,8 @@ libncursesw.so.6 ncurses-libs-5.8_1 ignore libtinfo.so.6 ncurses-libtinfo-libs-6.2_2 libt3config.so.0 libt3config-1.0.0_1 libt3highlight.so.2 libt3highlight-0.5.0_1 +libt3key.so.1 libt3key-0.2.10_1 +libtranscript.so.1 libtranscript-0.3.3_1 libnetcdf.so.15 netcdf-4.7.0_1 libformw.so.6 ncurses-libs-5.8_1 ignore libfplll.so.7 fplll-5.4.1_1 diff --git a/srcpkgs/libt3key-devel b/srcpkgs/libt3key-devel new file mode 120000 index 00000000000..ad474aa7179 --- /dev/null +++ b/srcpkgs/libt3key-devel @@ -0,0 +1 @@ +libt3key \ No newline at end of file diff --git a/srcpkgs/libt3key/patches/fix-cross.patch b/srcpkgs/libt3key/patches/fix-cross.patch new file mode 100644 index 00000000000..ca267c0f794 --- /dev/null +++ b/srcpkgs/libt3key/patches/fix-cross.patch @@ -0,0 +1,11 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -83,7 +83,7 @@ + $(INSTALL) -s src.util/t3keyc/t3keyc $(_bindir) + $(INSTALL) -d $(_datadir)/libt3key1 + find src/database -type f | while read FILE ; do install -m0644 "$$FILE" $(_datadir)/libt3key1 ; \ +- $(_bindir)/t3keyc -l $(_datadir)/libt3key1/"$${FILE##*/}" ; done ++ ${QEMU_USER_STATIC} $(_bindir)/t3keyc -l $(_datadir)/libt3key1/"$${FILE##*/}" ; done + $(INSTALL) -d $(_mandir)/man1 + $(INSTALL) -m0644 man/t3keyc.1 $(_mandir)/man1 + if [ -f src.util/t3learnkeys/t3learnkeys ] ; then $(INSTALL) -s src.util/t3learnkeys/t3learnkeys $(_bindir) ; \ diff --git a/srcpkgs/libt3key/template b/srcpkgs/libt3key/template new file mode 100644 index 00000000000..d7c61c2bce2 --- /dev/null +++ b/srcpkgs/libt3key/template @@ -0,0 +1,31 @@ +# Template file for 'libt3key' +pkgname=libt3key +version=0.2.10 +revision=1 +build_helper=qemu +build_style=configure +configure_args="--prefix=/usr" +hostmakedepends="pkg-config gettext" +makedepends="libtool gettext-devel libt3config-devel ncurses-libtinfo-devel" +short_desc="Tilde Terminal Toolkit's library for key serquences" +maintainer="Andrew Benson " +license="GPL-3.0-or-later" +homepage="https://os.ghalkes.nl/t3/libt3key.html" +distfiles="https://os.ghalkes.nl/dist/libt3key-${version}.tar.bz2" +checksum=b3f63c8a5bdf4efc10a293e5124a4a1095af6149af96b0a10b3ce7da7400f8c1 + +export LIBTOOL=${XBPS_CROSS_BASE}/usr/bin/libtool + +if [ "$CROSS_BUILD" ]; then + export QEMU_USER_STATIC=qemu-${XBPS_TARGET_QEMU_MACHINE}-static +fi + +libt3key-devel_package() { + short_desc+=" - development files" + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +}