477 Commits

Author SHA1 Message Date
Matthias Reichl
02121b7274 update_retroplayer-addons: make script more robust
Only auto-update libretro packages with explicit githash and handle
repository / PKG_URL changes automatically.

Signed-off-by: Matthias Reichl <hias@horus.com>
2023-01-27 17:14:28 +01:00
Matthias Reichl
c459090348 update_retroplayer-addons: temporarily add picodrive to exclude list
kodi game repo incorrectly switched from the bundled version to
libretro repo which doesn't work as it uses git submodules.

Exclude it until that's fixed to avoid build breakage by incorrect
bumps.

Signed-off-by: Matthias Reichl <hias@horus.com>
2022-11-12 16:32:54 +01:00
Matthias Reichl
2176284b6e update_retroplayer-addons: improve tag resolution
Make sure we always return the latest tag in the branch and
only apply tag-suffix filtering if more than one tag exists.

This ensures we won't pick up an older (eg -Nexus) tag if newer
(eg -Matrix) tags are present - like it's currently the case with
game addons which only get "-Matrix" tags.

Signed-off-by: Matthias Reichl <hias@horus.com>
2022-01-10 19:14:04 +01:00
Matthias Reichl
a811118efe update_retroplayer-addons: allow overriding the tag suffix
The game addons are currently being tagged with "-Matrix"
as suffix which doesn't match the "Nexus" branch of the binary
addons repo.

Allow overriding the tag suffix so we don't fall back to earlier
-Nexus tags of the addon.

usage eg: ./update_retroplayer-addons Nexus Matrix

Signed-off-by: Matthias Reichl <hias@horus.com>
2022-01-10 19:14:04 +01:00
Matthias Reichl
6d6bab32bd update_retroplayer-addons: do stricter libretro version checks
Only accept standard github archive URLs and warn about other URLs
that aren't supported by the update script.

This avoids trashing PKG_VERSION with garbage, eg in libretro-mrboom

Signed-off-by: Matthias Reichl <hias@horus.com>
2022-01-10 19:14:04 +01:00
Portisch
b6da5ced51 update scripts: rework tag fetching with GitHub API
Use GitHub GraphQL API to sort fetched tags by date instead by version 
number.
2021-10-13 11:30:33 +02:00
Portisch
eecccee3c7 update_binary-addons: remove ADDONS_GIT_DIR if delete git dirs is set 2021-10-04 11:33:02 +02:00
Portisch
bec6d17054 update binary addons scripts: implement GITHUB_API_TOKEN alternative
When environment variable GITHUB_API_TOKEN like in ${HOME}/.${DISTRO,,}/options
is assigned the script will fetch all data direct from Github instead
clone every single package.
2021-10-04 11:31:18 +02:00
Matthias Reichl
18488b0f0e update_retroplayer-addons: support tar.gz archive links
game addons have (mostly?) switched from zip to tar.gz links,
add support for extracting the version info from these as well
to fix game addon updates.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-09-24 17:21:53 +02:00
Portisch
32adf7fe45 update_common_functions: allow assigning PROJECT and ARCH values 2021-09-22 12:45:44 +02:00
heitbaum
ce60e6adeb soil: remove package 2021-07-29 23:02:40 +10:00
Christian Hewitt
fe881fa7d3
Merge pull request #5165 from CvH/10.0/dvb-driver
DVB Addons Update
2021-03-08 16:44:25 +04:00
Matthias Reichl
745dd0cad3 remove tools/mkpkg/mkpkg_libretro-ppsspp
Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-28 09:17:31 +01:00
CvH
9e1e24e1c4 mkpkg_pvr: update cc to new url 2021-02-20 16:42:26 +01:00
Matthias Reichl
255bea76b4 update_retroplayer-addons: check for orphaned addon packages
Report which game addon packages are only present in LE but not in
the kodi game binary addon repo.

These packages are not automatically bumped by the script and should
either be removed from LE or added to the kodi game binary repo.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-17 11:10:28 +01:00
Matthias Reichl
f5dff7ab01 tools/mkpkg/update_binary-addons: exclude vfs.sacd
vfs.sacd has been deprecated in favour of audiodecoder.sacd and
removed from official kodi binary repo.

Add it to the exclude list until we finally remove the package so
the update script won't switch the version from tag to githash.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-01-16 09:58:41 +01:00
Matthias Reichl
99b6f9c94e update_retroplayer-addons: match lastest tag with kodi branch in name
If no tag with the kodi branch name can be found, fall back to the
latest tag in the branch.

This fixes ambiguity if both a -Leia and a -Matrix tag point to the
same githash.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-10-19 23:19:38 +02:00
Matthias Reichl
0a1bd36597 update_binary-addons: drop vfs.nfs and vfs.sacd from exclude list
vfs.nfs has recently been removed from kodi's binary addon repo
and vfs.sacd is now included in LibreELEC

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-04-20 13:24:34 +02:00
Matthias Reichl
4dbd3c5196 update_binary-addons: drop kodi-platform bump
kodi-platform version is no longer managed in kodi's git tree and
needs to be updated manually, like p8-platform

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-03-13 10:51:34 +01:00
Matthias Reichl
46f0ad43d8 update_retroplayer-addons: stop defaulting to retroplayer branch
The kodi-game binary addon repo now contains Leia and Matrix,
like the kodi binary addon repo, so make the branch name a
mandatory option.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-01-30 10:55:55 +01:00
Matthias Reichl
80e2910726 update_binary-addons: allow specifying branch for unofficial addons
Since Kodi Matrix hasn't branched yet and is still developed in
master the kodi branch name (master) and the branch name used in
addons (Matrix) doesn't match.

Allow to optionally specify the addon branch name on the command line,
eg "./update_binary-addons master Matrix".

This fixes visualization.pictureit bumps for master which picked
up the master branch of the addon instead of the Matrix branch.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-12-29 19:10:54 +01:00
Matthias Reichl
6f7e62d67a update_binary-addons: prefer Kodi branch over HEAD for unofficial addons
This fixes bumping visualization.pictureit which has separate branches
for Leia and Matrix.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-12-29 14:04:01 +01:00
Matthias Reichl
db9b48abfe update_binary-addons: fix PKG_REV bump for unofficial addons
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 23:41:36 +02:00
Matthias Reichl
69a7660940 update_retroplayer-addons: drop loop over single item
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:29:02 +02:00
Matthias Reichl
38a137c923 addon update scripts: refactor repo fetching and package updating
Kodi binary and game addons always reference branches in the addon
repo. The only exception is the kodi-platform package which references
a githash.

This allows us to simplify remote repo fetch and tag / branch HEAD
resolving: we don't need named branches in the working copy but can
simply query remote branches or use a detached branch if we need the
actual contents.

With this change the same (out-of-tree) directory containing cloned
repos can be used to update both kodi Leia and master addon versions,
without needing another clone.

Also refactor the package update code, drop update_to_latest_tag from
common functions (it was only used by update_binary-addons,
update_retroplayer-addons needs slightly different logic) and use
update_pkg function. update_retroplayer-addons now also uses update_pkg
instead of duplicating nearly identical code.

Several variable names have been cleaned up to follow a common naming
pattern.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:29:02 +02:00
Matthias Reichl
3e97dce6c5 addon update scripts: change PKG_REV update logic
When updating versioned / tagged addons reset PKG_REV to 1.

When updating unversioned / untagged addons always bump PKG_REV
as we don't know if the version has been changed or not.

If the "-b/--bump-pkg-rev" option is used PKG_REV will be bumped
on all addons that weren't updated. Use this to ensure all addons
will have a newer version than before.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:12:39 +02:00
Matthias Reichl
7cf95c6b99 addon update scripts: set modes via command line options
Use command line options to select PKG_REV bump and deleting
cloned git dis after update. git dirs are now kept by default,
deleting them has to be explicitly enabled via "-d".

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:12:39 +02:00
kszaq
5b43ef7cb1 tools: drop mkpkg_linux-amlogic 2019-05-04 00:02:46 +02:00
chbmb
263d3b50ea
mkpkg_media_build
CrazyCat `linux_media` repository no longer exists on [Github](https://github.com/crazycat69/linux_media) but seems to have migrated and be active on [bitbucket](https://bitbucket.org/CrazyCat/linux_media).
2019-04-07 21:24:37 +01:00
MilhouseVH
d4f6326142 packages: align source code licence usage with project licence 2019-03-26 18:05:50 +00:00
MilhouseVH
e691b3b693 packages: correct original copyright 2019-03-26 16:43:42 +00:00
Matthias Reichl
d209e704ab update_retroplayer-addons: exclude non-working game addons
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 15:59:13 +01:00
Matthias Reichl
a65908b1d7 update_binary-addons: exclude vfs.nfs from updates
vfs.nfs isn't released yet

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:59:23 +01:00
Matthias Reichl
9c8860c5bc update_binary-addons: make missing addon check work again
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:59:11 +01:00
Matthias Reichl
3d60aba791 update_binary-addons: remove p8-platform bump
LibreELEC uses a locally managed, newer version of p8-platform

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
3f2eb80d8f update_binary-addons: exclude vfs.sacd from updates
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
8fb7fbbaf7 update_retroplayer-addons: exclude game.netplay from updates
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
78259e03a0 update addons: add possibility to exclude packages in updates
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
673f7d28a2 update_retroplayer-addons: don't bump PKG_REV on game addon bumps
As we are using tags, and the addon version should match the tag
version bumping PKG_REV on kodi game addon updates isn't needed.

As with update_binary-addons bumping PKG_REV may be wanted as
we are switching from HEAD to tags and can be enabled by setting
the PKG_BUMP_REV environment variable.

PKG_REV will also be bumped the script is run with "-f" as before.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:17:19 +01:00
Matthias Reichl
8df1fcbfeb update_retroplayer-addons: switch to using tags
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:10:38 +01:00
Matthias Reichl
8e921e37a9 factor out common binary/retroplayer addon update functions
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:06:15 +01:00
Matthias Reichl
ca9897e76a update_retroplayer-addons: fix git directory clash
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 20:38:12 +01:00
Matthias Reichl
de946a4c5a update_binary-addons: fix unquoted path variables
also change missing tag ERROR to WARNING

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 20:37:25 +01:00
Matthias Reichl
4c170f5b0b update_binary-addons: add options to keep git dirs and bump PKG_REVs
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 17:44:16 +01:00
Matthias Reichl
d0cc97cdd6 update_binary-addons: update kodi addons to latest tag
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 17:40:38 +01:00
Matthias Reichl
dc9ceda279 update_retroplayer-addons: handle all game.* addons
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-01-27 14:04:44 +01:00
Matthias Reichl
7b11ece9b4 update_retroplayer-addons: colorize warnings and errors
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-01-27 14:04:44 +01:00
Matthias Reichl
9a6c8520a4 update_retroplayer-addons: sync libretro core versions with kodi
Instead of bumping libretro cores to their current master version
use the githash from depends file in kodi game addon.

This ensures we ship the same libretro core versions as Kodi.

When a kodi game addon is bumped the libretro package is automatically
bumped, too.

If the script is invoked with the "-f" option all libretro packages
will be synced to the version specified in the kodi game addon.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-01-26 17:43:51 +01:00
CvH
765e99cfd6 update_retroplayer-addons: use default branch instead of master 2018-11-17 16:48:05 +01:00
CvH
e8742188fb
Merge pull request #3052 from lrusak/retroplayer-script
update_retroplayer-addons: use git ls-remote to avoid cloning the ent…
2018-11-17 16:46:47 +01:00