From 515c7e06e7d3288a3d39ff456b4439385630cb31 Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Sun, 7 Jan 2024 05:11:06 +0300 Subject: [PATCH 1/2] New package: python3-gtts-2.5.0 --- srcpkgs/python3-gtts/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-gtts/template diff --git a/srcpkgs/python3-gtts/template b/srcpkgs/python3-gtts/template new file mode 100644 index 0000000000000..460a8f20b4415 --- /dev/null +++ b/srcpkgs/python3-gtts/template @@ -0,0 +1,21 @@ +# Template file for 'python3-gtts' +pkgname=python3-gtts +version=2.5.0 +revision=1 +build_style=python3-pep517 +make_install_target="dist/gTTS-*-*-*-*.whl" +hostmakedepends="python3-wheel" +depends="python3-click python3-requests" +short_desc="Library and CLI tool to interface with Google Translate's TTS API" +maintainer="chrysos349 " +license="MIT" +homepage="https://github.com/pndurette/gTTS" +changelog="https://raw.githubusercontent.com/pndurette/gTTS/main/CHANGELOG.md" +distfiles="${PYPI_SITE}/g/gTTS/gTTS-${version}.tar.gz" +checksum=d6d589b1759948490fbabd7a11d1799eeafdde8ba90580194918a18dc078ec49 +make_check=no # requires python3-testfixtures + +post_install() { + vlicense LICENSE + rm -rf ${DESTDIR}/${py3_sitelib}/gtts/{,tokenizer}/tests +} From 0cdd1b098be8e9361bef2f5a40b52113465776eb Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Sun, 7 Jan 2024 05:11:46 +0300 Subject: [PATCH 2/2] New package: dialect-2.2.0 --- srcpkgs/dialect/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/dialect/template diff --git a/srcpkgs/dialect/template b/srcpkgs/dialect/template new file mode 100644 index 0000000000000..5480bf40d59f4 --- /dev/null +++ b/srcpkgs/dialect/template @@ -0,0 +1,31 @@ +# Template file for 'dialect' +pkgname=dialect +version=2.2.0 +revision=1 +build_style=meson +hostmakedepends="blueprint-compiler desktop-file-utils gettext glib-devel + gtk-update-icon-cache pkg-config" +makedepends="libadwaita-devel python3-gobject-devel" +depends="gst-plugins-good1 libadwaita libsoup3 python3-BeautifulSoup4 + python3-dbus python3-gobject python3-gtts" +short_desc="Translation app for GNOME" +maintainer="chrysos349 " +license="GPL-3.0-or-later" +homepage="https://github.com/dialect-app/dialect" +changelog="https://raw.githubusercontent.com/dialect-app/dialect/main/NEWS.md" +_commit=9155653c4493730508989617d8bf86980e6029ae +distfiles="https://github.com/dialect-app/dialect/archive/${version}.tar.gz + https://github.com/dialect-app/po/archive/${_commit}.tar.gz" +checksum="b0e4fcfff080d789f9ef71b6a5a9cb2b45348d6d313df442c36cbf25db353391 + 021eb43c13485368158030f8866449a436890e83b821f9eb5f5e5f5567dac0c6" + +post_extract() { + mv ${pkgname}-${version}/* . + mv po*/* po +} + +pre_build() { + if [ "$CROSS_BUILD" ]; then + export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0" + fi +}