You are not logged in.

#1 2015-02-25 16:55:48

RibShark
Member
Registered: 2013-09-21
Posts: 30

[REQUEST] Livestreamer Twitch GUI

Name: livestreamer-twitch-gui
Description: A multi platform Twitch.tv browser for Livestreamer
URL: https://github.com/bastimeyer/livestreamer-twitch-gui
Licence: MIT
Depenencies: not sure of all, but definitely libnotify and gconf
Makedepends: Nodejs and some other nodejs depends.

This is a very nice GUI for livestreamer that lets you watch Twitch streams outside of a browser (and without that nasty Flash dependency). I was surprised this wasn't on the AUR, but I could not work out how to compile it in an "Arch-Like" way, nor could I find a good list of dependencies and makedependencies. If anyone would be kind enough to produce a good package that would be very helpful.

Offline

#2 2015-02-25 19:36:47

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [REQUEST] Livestreamer Twitch GUI

This is my first PKGBUILD. So I need your help to complete it...

pkgname=livestreamer-twitch-gui
pkgver=0.7.1
pkgrel=1
pkgdesc='A multi platform Twitch.tv browser for Livestreamer'
arch=('any')
url="https://github.com/bastimeyer/livestreamer-twitch-gui"
license=('MIT')
depends=('nodejs' 'livestreamer')


source=("https://github.com/bastimeyer/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('d62ec5f54fc2e7114c02f8ad0be1f938')


package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  npm install -g grunt-cli bower
  npm install
  grunt release

}

Well, my problem is that I get an error:

npm ERR! tar.unpack untar error /home/alex/.npm/grunt-cli/0.1.13/package.tgz
npm ERR! tar.unpack untar error /home/alex/.npm/bower/1.3.12/package.tgz
npm ERR! Linux 3.18.6-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "grunt-cli" "bower"
npm ERR! node v0.12.0
npm ERR! npm  v2.6.0
npm ERR! path /usr/lib/node_modules/grunt-cli
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, mkdir '/usr/lib/node_modules/grunt-cli'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, mkdir '/usr/lib/node_modules/grunt-cli']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/usr/lib/node_modules/grunt-cli',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/usr/lib/node_modules/grunt-cli',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack: 
npm ERR!    [ '/usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR!      '/usr/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR!      'FSReqWrap.oncomplete (fs.js:99:15)' ] }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/alex/aur/livestreamer/src/livestreamer-twitch-gui-0.7.1/npm-debug.log

So, I think that 'npm' needs root permissions (according to their installation instructions)  but I don't know how to set it.
I have very limited knowledge on coding and wiki page it very difficult for me to understand.
So any help is welcome...

If you download the 32 or 64 bit .tar.gz and extract them, the program works (but I think it needs pulseaudio)

Offline

#3 2015-02-25 19:48:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [REQUEST] Livestreamer Twitch GUI

You somehow need to tell npm to install into $pkgdir instead of the live filesystem.

Offline

#4 2015-03-08 16:58:55

InfernoZeus
Member
Registered: 2015-03-07
Posts: 4

Re: [REQUEST] Livestreamer Twitch GUI

I hadn't seen your request, but I just added a package for this. At the moment it doesn't build from git, it just uses the binary downloads.

Offline

#5 2015-03-08 21:33:23

themax
Member
Registered: 2013-05-14
Posts: 32

Re: [REQUEST] Livestreamer Twitch GUI

I worked on alex.theoto's PKGBUILD

It builds on my system. Building from releases is not supported, only building from git is. I removed the metadata check and --forced grunt to build it anyway. The icons are not packaged though. That's too much work for me right now.

Certainly, someone could improve this more. (include icons and a .desktop file)

pkgname=livestreamer-twitch-gui
pkgver=0.7.1
pkgrel=1
pkgdesc='A multi platform Twitch.tv browser for Livestreamer'
arch=('any')
url="https://github.com/bastimeyer/livestreamer-twitch-gui"
license=('MIT')
depends=('nodejs' 'livestreamer')


source=("https://github.com/bastimeyer/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('d62ec5f54fc2e7114c02f8ad0be1f938')


build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  npm install grunt-cli bower
  npm install
  rm build/tasks/custom/metadata.js
  ./node_modules/grunt-cli/bin/grunt release --force
}
package() {
  cd "${srcdir}/${pkgname}-${pkgver}/build/releases/$pkgname/*"
  mkdir -p "$pkgdir/usr/lib/$pkgname"
  cp `find -maxdepth 1 -type f` "$pkgdir/usr/lib/$pkgname"
  mkdir -p "$pkgdir/usr/bin"
  ln -s "$pkgdir/usr/lib/$pkgname/start.sh" "$pkgdir/usr/bin/$pkgname"
}

EDIT: I just had it working, when I built from git. Now it's broken...

Last edited by themax (2015-03-08 21:44:24)

Offline

#6 2015-03-09 17:05:29

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [REQUEST] Livestreamer Twitch GUI

Well, after some research I found out that the 'grunt-cli' and 'bower' are already installed on my system (probably from 'modejs').

I tried to install without PKGBUILD.
As root used the commands to build it and I couldn't build it. I get an error:

[root@LenovoArch livestreamer-twitch-gui-0.7.1]# npm install
npm WARN prefer global bower@1.3.12 should be installed with -g
npm WARN prefer global grunt-cli@0.1.13 should be installed with -g
npm WARN cannot run in wd livestreamer-twitch-gui@0.7.1 bower --config.interactive=false install (wd=/home/alex/aur/live/src/livestreamer-twitch-gui-0.7.1)


[root@LenovoArch livestreamer-twitch-gui-0.7.1]# grunt release
Running "release" task

Running "jshint:app" (jshint) task
>> 126 files lint free.

Running "jshint:test" (jshint) task
>> 4 files lint free.

Running "connect:test" (connect) task
Started connect web server on http://0.0.0.0:8000

Running "qunit:all" (qunit) task
Testing http://localhost:8000/test/tests.html .......OK
>> 27 assertions passed (45ms)

Running "clean:tmp" (clean) task
>> 0 paths cleaned.

Running "copy:build" (copy) task
Created 1 directories, copied 41 files

Running "metadata:all" (metadata) task
Fatal error: fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

So, something is wrong.

@themax It doesn't build.
@InfernoZeus Your package is working.
@RibShark your package is available.

I think this request is over.
Thank you folks ...


EDIT:
Please don't forget to mark your port as 'solved'

Last edited by alex.theoto (2015-03-12 18:36:23)

Offline

#7 2015-03-13 13:29:18

InfernoZeus
Member
Registered: 2015-03-07
Posts: 4

Re: [REQUEST] Livestreamer Twitch GUI

I can look into adding a livestreamer-twitch-gui-git package as well, but I want to make some changes to the stable package before I start on that.

Offline

Board footer

Powered by FluxBB