Created
January 13, 2015 07:05
-
-
Save brownman/2b59393e38c0469da4b6 to your computer and use it in GitHub Desktop.
xbmc: auto-install: repository.superrepo.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#arch-linux is great - it has scripts for everything ! | |
#this is convertion of 1 script to work on Ubuntu | |
#based on: | |
#https://aur.archlinux.org/packages/?O=0&C=0&SeB=nd&K=xbmc&outdated=&SB=v&SO=d&PP=50&do_Search=Go | |
#https://aur.archlinux.org/packages/?O=0&C=0&SeB=nd&K=kodi&outdated=&SB=v&SO=d&PP=50&do_Search=Go | |
# Maintainer: M0Rf30 | |
pkgname=kodi-addon-superrepo-all | |
pkgver=0.5.205 | |
pkgrel=1 | |
pkgdesc='The world largest XBMC addon repository containing more than 1.300 addons' | |
codename=helix | |
classname=repository.superrepo.org.${codename}.all | |
#arch=('any') | |
url='http://superrepo.org/' | |
#license=('GPL3') | |
#depends=('kodi') | |
source="http://mirrors.superrepo.org/addons/${codename}/${classname}/${classname}-${pkgver}.zip" | |
#optdepends=('kodi-addon-superrepo-adult: enable adult addons for XBMC') | |
#md5sums=('2de695735f88c5ad9d6949030697ff17') | |
srcdir=$PWD | |
mv_to_correct_dir() { | |
mkdir -p "${pkgdir}/usr/share/kodi/addons/" | |
dir_target="${pkgdir}/usr/share/kodi/addons/" | |
cp -r "${srcdir}/${classname}/" $dir_target | |
ls $dir_target | |
find "$dir_target/${classname}/" -type d -name '.git' -exec rm -rf {} \; | |
find "$dir_target/${classname}/" -type f -exec chmod 644 {} \; | |
} | |
wget $source | |
unp *.zip | |
mv_to_correct_dir | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment