diff options
author | Patrick Northon | 2024-11-28 16:52:02 -0500 |
---|---|---|
committer | Patrick Northon | 2024-11-28 16:52:02 -0500 |
commit | 81767b62144c1d84f3b97f78466cd6fa1e0cb22d (patch) | |
tree | 96a61c48dcaa8469052503ad4971225ae0a68c5f | |
parent | 02eb80e52219695080d79890c52107c425bc7d54 (diff) | |
download | aur-81767b62144c1d84f3b97f78466cd6fa1e0cb22d.tar.gz |
Update version.
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | flet-linux.patch | 8 |
3 files changed, 23 insertions, 16 deletions
@@ -1,7 +1,7 @@ pkgbase = python-flet pkgdesc = Easily build realtime web, mobile and desktop apps in your favorite language and securely share them with your team. - pkgver = 0.24.1 - pkgrel = 2 + pkgver = 0.25.0 + pkgrel = 1 url = https://flet.dev/ arch = x86_64 license = Apache @@ -26,9 +26,9 @@ pkgbase = python-flet depends = gstreamer depends = gst-plugins-base-libs depends = mpv - source = flet-0.24.1.tar.gz::https://github.com/flet-dev/flet/archive/refs/tags/v0.24.1.tar.gz + source = flet-0.25.0.tar.gz::https://github.com/flet-dev/flet/archive/refs/tags/v0.25.0.tar.gz source = flet-linux.patch - sha256sums = 8e007f71953fae93f8c808e07b527406f1784f10885879523c6a92fa08114c01 - sha256sums = af9718b926a07ac8e8689a2c623fe6921d88d0bcd52263f63848d11175e3b828 + sha256sums = 9d083547f708c30881957b6a73aa04c303b34838360af43142f568fbe4b0fe87 + sha256sums = 2d7372f0a8a6f7ccbeb3f91a4c866cce002da39d3326b1f9ceab2b2162bf8e7c pkgname = python-flet @@ -4,8 +4,8 @@ _pkgname=flet pkgname=python-${_pkgname} -pkgver=0.24.1 -pkgrel=2 +pkgver=0.25.0 +pkgrel=1 pkgdesc='Easily build realtime web, mobile and desktop apps in your favorite language and securely share them with your team.' url="https://${_pkgname}.dev/" license=('Apache') @@ -36,11 +36,11 @@ arch=('x86_64') source=( "${_pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}-dev/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz" 'flet-linux.patch') -sha256sums=('8e007f71953fae93f8c808e07b527406f1784f10885879523c6a92fa08114c01' - 'af9718b926a07ac8e8689a2c623fe6921d88d0bcd52263f63848d11175e3b828') +sha256sums=('9d083547f708c30881957b6a73aa04c303b34838360af43142f568fbe4b0fe87' + '2d7372f0a8a6f7ccbeb3f91a4c866cce002da39d3326b1f9ceab2b2162bf8e7c') _srcdir="${_pkgname}-${pkgver}" -_engine_version=3.24.2 +_engine_version=3.24.5 prepare() { cd "${_srcdir}" @@ -65,7 +65,7 @@ build() { APPVEYOR_BUILD_VERSION=${pkgver} goreleaser build --clean --snapshot --single-target popd - for dir in 'sdk/python/packages/'{flet-core,flet,flet-runtime}; do + for dir in 'sdk/python/packages/'{flet-cli,flet-desktop,flet}; do pushd "$dir" python -m build --wheel --no-isolation popd @@ -77,7 +77,7 @@ package() { install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${_pkgname}" - for dir in 'sdk/python/packages/'{flet-core,flet,flet-runtime}; do + for dir in 'sdk/python/packages/'{flet-cli,flet-desktop,flet}; do pushd "$dir" python -m installer --destdir="$pkgdir" 'dist/'*.whl popd @@ -104,4 +104,11 @@ package() { install -dm0755 'site-packages/flet/bin' ln -s '/usr/bin/fletd' 'site-packages/flet/bin/fletd' #ln -s "/usr/share/$pkgname/web" 'site-packages/flet/web' + + local site_packages="$(python -c "import site; print(site.getsitepackages()[0])")" + install -Dm755 <(cat << EOF +#!/usr/bin/env sh +python '$site_packages/flet_cli/cli.py' "\$@" +EOF + ) "${pkgdir}/usr/bin/${_pkgname}_cli" } diff --git a/flet-linux.patch b/flet-linux.patch index d213f744e4f5..8b5bd3577bad 100644 --- a/flet-linux.patch +++ b/flet-linux.patch @@ -1,7 +1,7 @@ -diff --git a/sdk/python/packages/flet-runtime/src/flet_runtime/app.py b/sdk/python/packages/flet-runtime/src/flet_runtime/app.py +diff --git a/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py b/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py index ae1474c..990387b 100644 ---- a/sdk/python/packages/flet-runtime/src/flet_runtime/app.py -+++ b/sdk/python/packages/flet-runtime/src/flet_runtime/app.py +--- a/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py ++++ b/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py @@ -673,6 +673,9 @@ def __locate_and_unpack_flet_view(page_url, assets_dir, hidden): app_path = temp_flet_dir.joinpath(app_name) args = ["open", str(app_path), "-n", "-W", "--args", page_url, pid_file] @@ -11,4 +11,4 @@ index ae1474c..990387b 100644 + elif 0: # build version-specific path to flet folder temp_flet_dir = Path.home().joinpath(".flet", "bin", f"flet-{version.version}") - + |