diff --git a/.gitea/workflows/release_arm64v8.yml b/.gitea/workflows/release_arm64v8.yml index 99d9976..c6185c5 100755 --- a/.gitea/workflows/release_arm64v8.yml +++ b/.gitea/workflows/release_arm64v8.yml @@ -45,9 +45,7 @@ jobs: # mv aports/community/hexagonrpcd srcpkgs/ # mv aports/testing/gmic srcpkgs/ # mv aports/testing/dissent srcpkgs/ - git clone --depth 1 https://codeberg.org/comcloudway/apkbuild-collection.git - mv apkbuild-collection/testing/melon srcpkgs/ - ls -lah srcpkgs + ls srcpkgs | tr ' ' '\n' mv srcpkgs /home/runner && chown -R runner:runner /home/runner/srcpkgs echo "/home/runner/packages/srcpkgs" >> /etc/apk/repositories su - runner -c 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"; cd srcpkgs; for i in $(ls ./ ); do cd $i && abuild -r -c; cd .. ; done' diff --git a/srcpkgs/melon/0001-update-metainfo-file-to-pass-appstream-validate.patch b/srcpkgs/melon/0001-update-metainfo-file-to-pass-appstream-validate.patch new file mode 100755 index 0000000..6e25743 --- /dev/null +++ b/srcpkgs/melon/0001-update-metainfo-file-to-pass-appstream-validate.patch @@ -0,0 +1,646 @@ +From 3a6244e5927fbcc8afd8953d81fa99deec6de76a Mon Sep 17 00:00:00 2001 +From: Jakob Meier +Date: Sun, 17 Mar 2024 07:54:21 +0100 +Subject: [PATCH] update metainfo file to pass appstream validate + +--- + data/icu.ccw.Melon.desktop.in | 2 +- + data/icu.ccw.Melon.metainfo.xml.in.in | 356 +++++++++++++------------- + po/de.po | 36 ++- + po/fa.po | 31 ++- + po/melon.pot | 31 ++- + 5 files changed, 243 insertions(+), 213 deletions(-) + +diff --git a/data/icu.ccw.Melon.desktop.in b/data/icu.ccw.Melon.desktop.in +index e02d30f..16a164b 100644 +--- a/data/icu.ccw.Melon.desktop.in ++++ b/data/icu.ccw.Melon.desktop.in +@@ -7,7 +7,7 @@ Icon=@appid@ + Terminal=false + Type=Application + StartupNotify=true +-Categories=Graphics;Network;Viewer;GTK;GNOME; ++Categories=Graphics;Network;Video;Player;GTK;GNOME; + # Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! + Keywords=viewer;videos;stream;browse; + X-GNOME-UsesNotifications=true +diff --git a/data/icu.ccw.Melon.metainfo.xml.in.in b/data/icu.ccw.Melon.metainfo.xml.in.in +index d05cdf4..5e7c949 100644 +--- a/data/icu.ccw.Melon.metainfo.xml.in.in ++++ b/data/icu.ccw.Melon.metainfo.xml.in.in +@@ -1,189 +1,195 @@ + + +- @app_id@ ++ @app_id@ + +- @prettyname@ +- @app_id@ +- Video player that aims to be mobile friendly. Stream videos on the go from multiple sources. ++ @prettyname@ ++ @app_id@ ++ Stream videos on the go from different services + +- +- @authorfullname@ +- +- @authorfullname@ +- +- @authoremail@ ++ ++ @authorfullname@ ++ ++ @authoremail@ + + +- CC0-1.0 +- @license@ ++ CC0-1.0 ++ @license@ + +- +- 360 +- always +- +- +- pointing +- keyboard +- touch +- ++ ++ 360 ++ always ++ ++ ++ pointing ++ keyboard ++ touch ++ + +- +-

+- Melon allows you to watch videos, subscribe to channels and bookmark playlists from multiple services. +-

+-

+- The following services are currently supported: +-

+-
    +-
  • Invidious (to access YouTube)
  • +-
  • PeerTube (experimental)
  • +-
  • Nebula (account required to watch videos)
  • +-
+-
++ ++

++ Melon allows you to watch videos, subscribe to channels and bookmark playlists from multiple services. ++

++

++ Access to these services is provided via so called servers (aka plugins), which communicate with the API of said service. ++ The following services are currently supported: ++

++
    ++
  • Invidious (to access YouTube)
  • ++
  • PeerTube (experimental)
  • ++
  • Nebula (account required to watch videos)
  • ++
++
+ +- @gitrepo@/issues +- @website@ +- https://translate.codeberg.org/engage/melon/ +- @gitrepo@ ++ @gitrepo@/issues ++ @website@ ++ https://translate.codeberg.org/engage/melon/ ++ @gitrepo@ + +- @app_id@.desktop +- +- +- +- Default Melon home screen showing: crickets chirping; Subscribe to a channel first, to view uploads +- +- https://codeberg.org/comcloudway/melon/media/branch/main/screenshots/empty_feed.png +- +- +- +- List of available servers: Invidious, Nebula, Peertube; including server description +- +- https://codeberg.org/comcloudway/melon/media/branch/main/screenshots/server_list.png +- +- +- +- Video Screen, with a video player at the top, the video title below, an expandable description, channel information and a bookmark button +- +- https://codeberg.org/comcloudway/melon/media/branch/main/screenshots/video.png +- +- +- +- +- +-
    +-
  • +- Melon now remebers your playback position: +- Pick up where you left of +-
  • +-
  • +- Introducing Playlist-Mode: +- Click the play button when viewing a playlist to start playing. +- A slightly modified player will allow you to skip tracks, +- enable shuffle mode or repeat videos. +-
  • +-
  • +- Goodbye WebView. Hello GStreamer: +- Melon now has it's own simple video player, +- with slide gestures to change the volume and brightness +- and double click gesture to skip ahead/back. +-
  • +-
+-
+-
+- +- +-
    +-
  • +- made melon translateable. Help translate melon to your language +-
  • +-
  • +- decode title and description using Unidecode +-
  • +-
  • +- add load more pagination to history page +-
  • +-
  • +- show spinner on new pages while waiting for results +-
  • +-
+-
+-
+- +- +-
    +-
  • +- experimental peertube support +-
  • +-
  • +- new-uploads-feed speedup by fetching videos on 10 threads +-
  • +-
  • +- faster feed rendering by loading thumbnails on separate thread +-
  • +-
+-
+-
+- +- +-

fix what's-new feed duplicate error

+-
+-
+- +- +-

+- First stable Version +-

+-

+- Features: +-

+-
    +-
  • +- Import Subscriptions, Playlists and History from Newpipe (.db file +- inside the .zip) +-
  • +-
  • +- Browse Server feeds and search for channels, playlists and videos +-
  • +-
  • +- Browse uploads and playlists from channels +-
  • +-
  • +- Bookmark playlists and create new ones +-
  • +-
  • +- Add videos to local playlist +-
  • +-
  • +- Follow channels and view new uploads in a home feed +-
  • +-
  • +- Support for invidious and nebula source +-
  • +-
+-
+-
+-
++ @app_id@.desktop ++ ++ Graphics ++ Network ++ Video ++ Player ++ + +- @app_id@ ++ ++ ++ ++ Default Melon home screen showing: crickets chirping; Subscribe to a channel first, to view uploads ++ ++ https://codeberg.org/comcloudway/melon/media/branch/main/screenshots/empty_feed.png ++ ++ ++ ++ List of available servers: Invidious, Nebula, Peertube; including server description ++ ++ https://codeberg.org/comcloudway/melon/media/branch/main/screenshots/server_list.png ++ ++ ++ ++ Video Screen, with a video player at the top, video meta data and a bookmark button ++ ++ https://codeberg.org/comcloudway/melon/media/branch/main/screenshots/video.png ++ ++ ++ ++ ++ ++
    ++
  • ++ Melon now remebers your playback position: ++ Pick up where you left of ++
  • ++
  • ++ Introducing Playlist-Mode: ++ Click the play button when viewing a playlist to start playing. ++ A slightly modified player will allow you to skip tracks, ++ enable shuffle mode or repeat videos. ++
  • ++
  • ++ Goodbye WebView. Hello GStreamer: ++ Melon now has it's own simple video player, ++ with slide gestures to change the volume and brightness ++ and double click gesture to skip ahead/back. ++
  • ++
++
++
++ ++ ++
    ++
  • ++ Made melon translateable. Help translate melon to your language ++
  • ++
  • ++ Decode title and description using Unidecode ++
  • ++
  • ++ Add load more pagination to history page ++
  • ++
  • ++ Show spinner on new pages while waiting for results ++
  • ++
++
++
++ ++ ++
    ++
  • ++ Experimental peertube support ++
  • ++
  • ++ New-uploads-feed speedup by fetching videos on 10 threads ++
  • ++
  • ++ Faster feed rendering by loading thumbnails on separate thread ++
  • ++
++
++
++ ++ ++

Fix what's-new feed duplicate error

++
++
++ ++ ++

++ First stable Version ++

++

++ Features: ++

++
    ++
  • ++ Import Subscriptions, Playlists and History from Newpipe (.db file ++ inside the .zip) ++
  • ++
  • ++ Browse Server feeds and search for channels, playlists and videos ++
  • ++
  • ++ Browse uploads and playlists from channels ++
  • ++
  • ++ Bookmark playlists and create new ones ++
  • ++
  • ++ Add videos to local playlist ++
  • ++
  • ++ Follow channels and view new uploads in a home feed ++
  • ++
  • ++ Support for invidious and nebula source ++
  • ++
++
++
++
+ +- +- intense +- intense +- intense +- intense +- intense +- intense +- intense +- moderate +- moderate +- moderate +- intense +- intense +- intense +- intense +- intense +- mild +- intense +- ++ @app_id@ ++ ++ ++ intense ++ intense ++ intense ++ intense ++ intense ++ intense ++ intense ++ moderate ++ moderate ++ moderate ++ intense ++ intense ++ intense ++ intense ++ intense ++ mild ++ intense ++ + +
+diff --git a/po/de.po b/po/de.po +index 0b01df8..d9e6c31 100644 +--- a/po/de.po ++++ b/po/de.po +@@ -7,7 +7,7 @@ msgid "" + msgstr "" + "Project-Id-Version: Melon 0.1.2\n" + "Report-Msgid-Bugs-To: \n" +-"POT-Creation-Date: 2024-03-16 18:50+0100\n" ++"POT-Creation-Date: 2024-03-17 07:54+0100\n" + "PO-Revision-Date: 2024-03-01 11:23+0000\n" + "Last-Translator: Anonymous \n" + "Language-Team: German \n" + "Language-Team: Persian \n" + "Language-Team: LANGUAGE \n" +@@ -32,44 +32,51 @@ msgstr "" + msgid "viewer;videos;stream;browse;" + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:31 ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:7 ++msgid "Stream videos on the go from different services" ++msgstr "" ++ ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:29 + msgid "" + "Melon allows you to watch videos, subscribe to channels and bookmark " + "playlists from multiple services." + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:34 +-msgid "The following services are currently supported:" ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:32 ++msgid "" ++"Access to these services is provided via so called servers (aka plugins), " ++"which communicate with the API of said service. The following services are " ++"currently supported:" + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:38 ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:37 + msgid "Invidious (to access YouTube)" + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:39 ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:38 + msgid "PeerTube (experimental)" + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:40 ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:39 + msgid "Nebula (account required to watch videos)" + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:52 ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:58 + msgid "" + "Default Melon home screen showing: crickets chirping; Subscribe to a channel " + "first, to view uploads" + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:58 ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:64 + msgid "" + "List of available servers: Invidious, Nebula, Peertube; including server " + "description" + msgstr "" + +-#: ../data/icu.ccw.Melon.metainfo.xml.in.in:64 ++#: ../data/icu.ccw.Melon.metainfo.xml.in.in:70 + msgid "" +-"Video Screen, with a video player at the top, the video title below, an " +-"expandable description, channel information and a bookmark button" ++"Video Screen, with a video player at the top, video meta data and a bookmark " ++"button" + msgstr "" + + #: ../melon/browse/__init__.py:18 ../melon/browse/search.py:58 +-- +2.44.0 diff --git a/srcpkgs/melon/APKBUILD b/srcpkgs/melon/APKBUILD new file mode 100755 index 0000000..122d753 --- /dev/null +++ b/srcpkgs/melon/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Jakob Meier +# Maintainer: Jakob Meier +pkgname=melon +pkgver=0.2.0 +pkgrel=0 +pkgdesc="Melon is a video player that aims to be mobile friendly. Stream videos on the go from multiple sources." +url="https://codeberg.org/comcloudway/melon" +arch="noarch" +license="GPL-3.0-or-later" +depends=" + gettext + gst-plugins-rs + gtk4.0 + libadwaita + py3-beautifulsoup4 + py3-gobject3 + py3-lxml + py3-requests + py3-unidecode +" +makedepends=" + desktop-file-utils + gtk4.0-dev + libadwaita-dev + meson + " +subpackages="$pkgname-lang $pkgname-pyc" +source=" + melon-$pkgver.tar.gz::https://codeberg.org/comcloudway/melon/archive/$pkgver.tar.gz + 0001-update-metainfo-file-to-pass-appstream-validate.patch + " +builddir="$srcdir/$pkgname" + +prepare() { + default_prepare + ls -lah +} + +build() { + abuild-meson build + + ninja -C build +} + +check() { + meson test -C build --print-errorlog +} + +package() { + DESTDIR="$pkgdir" meson install -C build +} +sha512sums=" +beb470c0c59011c47a94427ee4a3dc661a2b713714d1835c1c3e190c15aa9df607facadbdd635381c2331d31f2731b9314e210ea1a45134d84114b8c03540c40 melon-0.2.0.tar.gz +6ec18aa024605be6426f2bad8b585e86ee2e64212aa09244fc68f7b889deeaacd63bcb067e2226ffa9a40eda4795ecf9aa3adb212b53e4ec708cb9d757fffb79 0001-update-metainfo-file-to-pass-appstream-validate.patch +"