[go: nahoru, domu]

Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
blocks wheezy and older, and precise.
set to only remove xserver-xorg-legacy on specified releases.
  • Loading branch information
zguithues authored Jul 8, 2017
1 parent 08f0c72 commit e03c965
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions targets/kodi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# Copyright (c) 2016 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if [ "${TARGETNOINSTALL:-c}" = 'c' ]; then
if release -le wheezy; then
error 99 "Kodi not supported on Debian Wheezy or older."
fi
if release = precise; then
error 99 "Kodi not supported on Precise Ubuntu."
fi
fi
REQUIRES='x11'
PROVIDES='xbmc'
DESCRIPTION='Installs the KODI media player. Ubuntu Only. (Approx. 140MB)'
Expand All @@ -11,8 +19,9 @@ CHROOTETC='kodi-keyboard.xml kodi-cycle.py'

### Append to prepare.sh:

## Debian Overrides
# Kodi wiki recommends using the Jessie Backports repository
if release -le jessie; then
if release = jessie; then
cat > '/etc/apt/sources.list.d/kodi.list' <<EOF
# Bring in Jessie Backports for newer Kodi
deb http://http.debian.net/debian jessie-backports main
Expand All @@ -21,6 +30,12 @@ EOF
apt-get update || true
fi

# Get rid of disruptive xserver-xorg-legacy package
if release = stretch || release = sid || release = kali-rolling; then
remove xserver-xorg-legacy
fi

## Ubuntu Overrides
# Kodi has an official ppa for the latest stable version
if [ "$DISTRO" = 'ubuntu' ]; then
# Pull in the signing key
Expand All @@ -37,7 +52,6 @@ EOF
fi

install kodi pulseaudio
remove xserver-xorg-legacy

# Configure keymaps kodi for the hotkeys ctr-shift-alt F1/F2 to
# cycle through chroots/chromeos. We use ~/.kodi/userdata/keymaps/keyboard.xml
Expand Down

0 comments on commit e03c965

Please sign in to comment.