You are not logged in.

#1 2014-09-05 08:18:59

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

AUR pkg request

Hi

   I have been using this on one of my Arch boxes and on a freebsd box, it is the best TUI twitter client i have tried, i believe it would be an asset to AUR & Arch users
https://github.com/DTVD/rainbowstream

regards
cirrus

P.S I do hope to learn how to do things like this myself soon.

Offline

#2 2014-09-05 09:15:20

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: AUR pkg request

totally untested, because I am at work. I will fix it up in the afternoon, if it doesnt work

pkgname=rainbowstream-git
_pkgname=rainbowstream
pkgver=r536.6934064

pkgrel=1
pkgdesc="Terminal-based Twitter Client. Realtime tweetstream, compose, search , favorite … and much more fun directly from terminal."
arch=('i686' 'x86_64')
url="https://github.com/DTVD/rainbowstream" 
license=('MIT')
depends=('python')
makedepends=('git' )


source=("git+https://github.com/DTVD/rainbowstream")
md5sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$_pkgname"
  python3 setup.py build
}
package(){
  cd "$srcdir/$_pkgname"
  python3 setup.py install --root="$pkgdir/" 
}

Offline

#3 2014-09-05 10:11:31

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: AUR pkg request

IsSuE
               Thank you, after installing the pkgbuild i get ...

Traceback (most recent call last):
  File "/usr/bin/rainbowstream", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2872, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 449, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 745, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Pillow

I hope this can be of some help, and thanks for taking the time to do this.

Offline

#4 2014-09-05 10:55:27

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: AUR pkg request

You need to install (and maybe create) packages for these python libraries:

# Require
install_requires = [
"python-dateutil",
"arrow",
"requests",
"pyfiglet",
"twitter",
"Pillow",
]

A simple pyvenv setup with pip is faster.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-09-05 11:25:30

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: AUR pkg request

progandy wrote:

You need to install (and maybe create) packages for these python libraries:

# Require
install_requires = [
"python-dateutil",
"arrow",
"requests",
"pyfiglet",
"twitter",
"Pillow",
]

A simple pyvenv setup with pip is faster.

True, some of the dependencies dont have a package available, so more PKGBUILDS are needed.

OP: installing the tool via pip is not an option for you?

Offline

#6 2014-09-05 12:27:38

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: AUR pkg request

OP: installing the tool via pip is not an option for you?

Sure i have installed it using venv on 1 of the arch boxes, and used pip in freebsd, i was thinking a pkgbuild may be beneficial to other fellow Archers, however if it's a PITA to create & not straightforward then maybe just disregard my request.

Regards
cirrus

Last edited by cirrus (2014-09-05 12:29:04)

Offline

#7 2014-09-05 12:52:48

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: AUR pkg request

It's not really difficult, just a lot of annoying work. It should work relatively well if you use pip2arch, you just have to add the dependencies manually.
https://github.com/bluepeppers/pip2arch

Last edited by progandy (2014-09-05 12:53:14)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#8 2014-09-05 13:02:41

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: AUR pkg request

cirrus wrote:

OP: installing the tool via pip is not an option for you?

Sure i have installed it using venv on 1 of the arch boxes, and used pip in freebsd, i was thinking a pkgbuild may be beneficial to other fellow Archers, however if it's a PITA to create & not straightforward then maybe just disregard my request.

Regards
cirrus

As progandy said.
IMHO there is no a whole lot of added benefit, if you have to download several PKGBUILDS instead of just running pip.

pip2arch is nice, didn't know about that. As they all follow the same scheme its pretty nifty smile

edit: btw progandy: are you the dude who wrote autoit object? I stumbled across your name while debugging an uiautomation script

Last edited by IsSuE (2014-09-05 13:04:24)

Offline

Board footer

Powered by FluxBB