Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kodi_game_scripting/process_game_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def __init__(self, addon_name, # pylint: disable=too-many-arguments
'game': {
'name': self.game_name,
'addon': self.name,
'debian_package': re.sub(r'[\._]', '-', self.name),
'branch': push_branch or 'master',
'version': '0.0.0',
},
Expand Down
2 changes: 1 addition & 1 deletion templates/addon/Jenkinsfile.j2
Original file line number Diff line number Diff line change
@@ -1 +1 @@
buildPlugin(platforms: {{ ['android-armv7', 'android-aarch64', 'ios-armv7', 'ios-aarch64', 'osx-x86_64', 'windows-i686', 'windows-x86_64']|reject("in", libretro_repo.exclude_platforms)|list()|tojson() }})
buildPlugin(platforms: {{ ['android-armv7', 'android-aarch64', 'ios-armv7', 'ios-aarch64', 'osx-x86_64', 'ubuntu-ppa', 'windows-i686', 'windows-x86_64']|reject("in", libretro_repo.exclude_platforms)|list()|tojson() }})
6 changes: 6 additions & 0 deletions templates/addon/debian/changelog.in.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kodi-{{ game.addon | regex_replace('[\._]', '-') }} (#PACKAGEVERSION#-#TAGREV#~#DIST#) #DIST#; urgency=low

[ kodi ]
* autogenerated dummy changelog

-- Team Kodi <dummy@kodi.tv> Sat, 01 Jun 2013 00:59:22 +0200
1 change: 1 addition & 0 deletions templates/addon/debian/compat.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
17 changes: 17 additions & 0 deletions templates/addon/debian/control.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: kodi-{{ game.addon | regex_replace('[\._]', '-') }}
Priority: extra
Maintainer: wsnipex <wsnipex@a1.net>
Build-Depends: debhelper (>= 9.0.0),
cmake,
kodi-addon-dev,
{{ game.name }} (>= {{ game.version | regex_replace('\.[^\.]$', '') }})
Standards-Version: 3.9.8
Section: libs

Package: kodi-{{ game.addon | regex_replace('[\._]', '-') }}
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, kodi, kodi-game-libretro
Enhances: kodi
Description: {{ libretro_info.display_name | default(xml.addon.name) | default(system_info.name) | default(game.name) }} core for kodi's retroplayer
{{ libretro_info.display_name | default(xml.addon.name) | default(system_info.name) | default(game.name) }} core for kodi's retroplayer
22 changes: 22 additions & 0 deletions templates/addon/debian/copyright.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Format: http://dep.debian.net/deps/dep5
Upstream-Name: {{ game.addon }}
Source: https://github.com/kodi-game/{{ game.addon }}

Files: *
Copyright: 2005-2019 Team Kodi
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/*/kodi/addons
usr/share/kodi/addons
16 changes: 16 additions & 0 deletions templates/addon/debian/rules.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@ --parallel

override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1
1 change: 1 addition & 0 deletions templates/addon/debian/source/format.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
buildPlugin(platforms: ["android-armv7", "android-aarch64", "ios-armv7", "ios-aarch64", "osx-x86_64", "windows-i686", "windows-x86_64"])
buildPlugin(platforms: ["android-armv7", "android-aarch64", "ios-armv7", "ios-aarch64", "osx-x86_64", "ubuntu-ppa", "windows-i686", "windows-x86_64"])
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kodi-game-libretro-mygame (#PACKAGEVERSION#-#TAGREV#~#DIST#) #DIST#; urgency=low

[ kodi ]
* autogenerated dummy changelog

-- Team Kodi <dummy@kodi.tv> Sat, 01 Jun 2013 00:59:22 +0200
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: kodi-game-libretro-mygame
Priority: extra
Maintainer: wsnipex <wsnipex@a1.net>
Build-Depends: debhelper (>= 9.0.0),
cmake,
kodi-addon-dev,
mygame (>= 2.10)
Standards-Version: 3.9.8
Section: libs

Package: kodi-game-libretro-mygame
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, kodi, kodi-game-libretro
Enhances: kodi
Description: mygame core for kodi's retroplayer
mygame core for kodi's retroplayer
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Format: http://dep.debian.net/deps/dep5
Upstream-Name: game.libretro.mygame
Source: https://github.com/kodi-game/game.libretro.mygame

Files: *
Copyright: 2005-2019 Team Kodi
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/*/kodi/addons
usr/share/kodi/addons
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@ --parallel

override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
1 change: 1 addition & 0 deletions tests/integration/test_template_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_process_template(tmpdir):
'game': {
'name': 'mygame',
'addon': 'game.libretro.mygame',
'debian_package': 'game-libretro-mygame',
'branch': 'master',
'version': '2.10.3',
},
Expand Down