Linux - build.leia v1.5.16 - shell script - Automatically install Leia on your system

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #1
Hello everyone.

I've created a shell script, written for ZSH, that enables me to install Leia from source directly from Github.

If anyone's interested, the source code can be found on Github: https://github.com/kekePower/build.leia

It's fairly stable and has worked for me really well.

Requirements:
* The standard requirements for building Kodi
* git
* ZSH
* You have to be in the sudoers file as it uses sudo to install Kodi and the binary addons
** This can of course be hacked if you want to install Kodi in your home directory.

I'm using Mageia 6 (Cauldron) and have almost every library necessary installed.

If you run into trouble/have issues, please see the Toubleshooting section on my Github project page.

Please feel free to fork, help out with translations, suggestions and so on. Creating this script has been a lot of fun for me and I hope someone will be able to use it.


Cheers,
kekePower
https://github.com/kekePower/build.leia
(This post was last modified: 2017-06-23 22:31 by kekePower.)
find quote
DarrenHill Offline
Team-Kodi Minion
Posts: 5,745
Joined: Oct 2014
Reputation: 132
Location: UK, except when I'm not.
Post: #2
Thread moved to Linux, but thank you for sharing it.

| Banned add-ons (wiki) | Forum rules (wiki) | First time user (wiki) | FAQs (wiki) | Troubleshooting (wiki) | Add-ons (wiki) | Free content (wiki) | Debug Log (wiki) | Free Movies/TV Shows
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #3
Hi again.

After the first time I made this script public, I've been hard at work fixing bugs, making the script more robust and more modular.

It's now at version 1.1.1

The main change is that if the script is run without parameteres, it assumes a set of defaults which are the same as --with=clean,addons.
This means that it will check for updates from git, remove the kodi-build directory, recreate it, configure, build, install and also clean and install the binary-addons.

I've also made the script more modular by moving code out of functions and into new functions where they really belong.
The script now logs everything to the log-file so that you can check what has happened during the run. It will tell you where you can find the file at the end of the run.

Introduced and fixed a lot of bugs. I believe this version is the best so far.

Really looking forward to hearing from you and your experiences with this script. Please let me know if you have any suggestions, improvements, issues or bugs that you'd like me to look at and please use the Issue system at Github.

Thanks and good luck :-)

Cheers,
kekePower
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #4
Hi.

A lot of bug fixes, enhancements and improvements has been made in version 1.2.3.

* Fixed a critical bug that did not honor when a No was set for a fresh install
* Fixed a critical bug that cloned Leia into the wrong directory
* Moved all the hard coded text from build.leia to en_US.inc
* The code is more commented
* A lot of clean-ups, removed unused variables and text

Thanks for your time.

Cheers,
kekePower
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #5
Hi all.

Version 1.3.1 has been released with numerous fixes and enhancements.

I've also begun the slow progress on a new, major version. The 1.3.1 version has been branched to "v1.x" on Github and this is the recommended version to use until v2.0.0 is released.

An incomplete list of wishes for v2.0.0
* Be able to compile and install binary-addons separately
* Build a list of packages/codecs/libraries that offer a better multimedia experience
** Download, compile and install them if the user answers Yes
* CLean up language files
* More to come...

Cheers,
kekePower
find quote
Derek Offline
Posting Freak
Posts: 1,710
Joined: Aug 2009
Reputation: 23
Location: Bonnie Scotland
Post: #6
cool thanks bud very useful ill give it a whirl Smile
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #7
Hi.

Version 1.3.6 released.

I've been hard at work fixing bugs, adding features and speeding things up a little.

An incomplete list of changes:
* Added option "no-ccache" that disables ccache during configuration
* Added option "only-addons" that will clean and compile only the binary-addons
* Sped up the check if a git pull is needed
* Renamed a few variables
* General code clean-up

Give it a spin and let me know if you find any bugs or have feature request. Please use the Issue system at Github.

Cheers,
kekePower
(This post was last modified: 2017-04-12 13:33 by kekePower.)
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #8
Hi.

Version 1.3.9 release.

* Norwegian language is complete
* Introduced a sudo option in the config file
** You'll have to edit PREFIX to a location where your user has write access if you don't use sudo
* Fixed a few bugs that prevented a full install
* Fixed other bugs that made certain combinations to not work
* Updated the installer a tad (Untested)
* General code clean-ups

Cheers,
kekePower
(This post was last modified: 2017-04-13 07:22 by kekePower.)
find quote
Derek Offline
Posting Freak
Posts: 1,710
Joined: Aug 2009
Reputation: 23
Location: Bonnie Scotland
Post: #9
Hi KeKePower thanks for your hard work ive wanted to compile kodi myself for a while but not really had time to play but your effort has given me the chance thanks.

Ill have more time this weekend and will let ya know how it goes ta dek.
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #10
(2017-04-13 14:41)Derek Wrote:  Hi KeKePower thanks for your hard work ive wanted to compile kodi myself for a while but not really had time to play but your effort has given me the chance thanks.

Ill have more time this weekend and will let ya know how it goes ta dek.

Sure thing :-)

I just hope somebody will find this little script useful. It makes compiling Kodi a lot easier for me.

Anyway, thanks for looking at it :-)

Cheers,
kekePower
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #11
Hi.

I've just updated to version 1.4.1.

Incomplete changelog
* Added color themes (just because...)
* Config file changed. See etc/build.leia.conf.sample and make the appropriate changes.
* Prevent script from starting if you're already running it
* No need to clean ccache if no-ccache is set
* General bug fixes and clean-ups

Cheers,
kekePower
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #12
Hi all.

Version 1.4.6 released.

Changelog:
* Added docs about how to write your own extensions
* Added an example. See build.leia --with=example
** File ~/bin/include/build.leia/example.inc
* Added option to remove ${PREFIX} before installation if you want a clean slate
* Bug fixes and clean-ups

Cheers,
kekePower
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #13
Howdy.

Version 1.4.9 released.

Changelog:
* Fixed a major bug that prevented Leia from being built from a fresh install
* Edited a few strings in the language files
* Binary addons not built are now displayed one line per item, if any
* Fixed a logging error
* Fixed a bug when only-addons was selected, it also asked if user wants to remove PREFIX

This release should be the most stable and feature rich released. Please give it a spin and let me know what you think.

Cheers,
kekePower
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #14
Hey!

Version 1.5.0 has hit the streets!

Changelog:
* Added progress information when compiling Kodi
* Fixed a possible bug when cleaning up the build directory

Cheers,
kekePower
find quote
kekePower Offline
Junior Member
Posts: 37
Joined: Feb 2016
Reputation: 3
Post: #15
Hello.

I've just pushed version 1.5.3 to Github.

Changelog:
* Edited a string in the en_US lang file
* Fixed a tiny bug
* Added a new variable for your extensions, STANDALONE, that will make sure that the script executes only your extension and not the rest of the script.
* Added updated screenshots in README.md for Github.

Please enjoy and let me know if you find anything or have ideas/wishes/features.

Now I'll have to update the documentation for writing your own extensions :-)

Cheers,
kekePower
find quote
Post Reply