You are not logged in.

#1 2012-12-15 22:42:13

fixles
Member
Registered: 2012-09-15
Posts: 101

Reditr.... only debs and rpms available can I install it?

Hi,

A really cool app for reddit is available from http://reditr.com/#!/Download but its only .deb or rpm. Is their anyway to install it in arch?

Thanks.

Offline

#2 2012-12-15 23:01:32

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,074

Re: Reditr.... only debs and rpms available can I install it?

Sure, you can make a PKGBUILD that downloads and installs it. Take a look here for an example:
https://bbs.archlinux.org/viewtopic.php?id=153823
Take a look at the control file to see what the dependencies are. I took a quick look at it, it installs things to /opt, so you may have to add it to your path as well.

Offline

#3 2012-12-15 23:06:11

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: Reditr.... only debs and rpms available can I install it?

You can just install it as a app within chrome / chromium.


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#4 2012-12-15 23:12:53

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Reditr.... only debs and rpms available can I install it?

Scimmia wrote:

Sure, you can make a PKGBUILD that downloads and installs it. Take a look here for an example:
https://bbs.archlinux.org/viewtopic.php?id=153823
Take a look at the control file to see what the dependencies are. I took a quick look at it, it installs things to /opt, so you may have to add it to your path as well.


Thanks I took a look at the PKGBUILD. Basically after the .deb is downloaded it runs

package() {
  cd "$srcdir"
  tar -xf data.tar.gz -C "$pkgdir"
}

How does this convert the .deb file?

Also I tried extracting the .deb file and copying it the binary to /opt but I get an error when trying to run it. How do I work out its dependancies?

Thanks.

Offline

#5 2012-12-15 23:13:53

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Reditr.... only debs and rpms available can I install it?

flipper T wrote:

You can just install it as a app within chrome / chromium.

Thanks but I try to avoid anything google related.

Offline

#6 2012-12-15 23:14:58

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,365

Re: Reditr.... only debs and rpms available can I install it?

Everything in $pkgdir gets compressed into an archive that pacman can install. So when you install it, things in $pkgdir/usr/bin are installed to /usr/bin, etc.


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#7 2012-12-15 23:26:51

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,074

Re: Reditr.... only debs and rpms available can I install it?

fixles wrote:
Scimmia wrote:

Sure, you can make a PKGBUILD that downloads and installs it. Take a look here for an example:
https://bbs.archlinux.org/viewtopic.php?id=153823
Take a look at the control file to see what the dependencies are. I took a quick look at it, it installs things to /opt, so you may have to add it to your path as well.


Thanks I took a look at the PKGBUILD. Basically after the .deb is downloaded it runs

package() {
  cd "$srcdir"
  tar -xf data.tar.gz -C "$pkgdir"
}

How does this convert the .deb file?

Also I tried extracting the .deb file and copying it the binary to /opt but I get an error when trying to run it. How do I work out its dependancies?

Thanks.

That converts it because it just extracts the binary files to the right place. If you're just doing it manually, change "$pkgdir" to "/" and everything will get extracted to where it needs to be, although it will not be tracked by pacman, so that's not recommended.

For dependencies, like I said, first check the control file inside control.tar.gz. The list is pretty long. Even then you could miss something since it refers to Ubuntu packages, not Arch packages. Plus there's the fact that it's compiled against certain versions of those libraries; if Arch's libraries are newer, it may not work.

Offline

#8 2012-12-15 23:41:45

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Reditr.... only debs and rpms available can I install it?

I created a PKGBUILD file without dependencies and it installs but when I add dependencies all are missing and I cant find them in the arch repositories?

pkgname=reditr
pkgver=1.0
pkgrel=1
pkgdesc="Reddit desktop application"
arch=('i686' 'x86_64')
url="http://reditr.com"
depends=('gconf-service' 'libasound2' 'libatk1.0-0' 'libc6' 'libcairo2' 'libdbus-1-3' 'libexpat1' 'libfontconfig1' 'libfreetype6' 'libgcc1' 'libgconf-2-4' 'libgdk-pixbuf2.0-0' 'libglib2.0-0' 'libgtk2.0-0' 'libnspr4' 'libnss3' 'libpango1.0-0' 'libstdc++6' 'libudev0' 'libx11-6' 'libxcomposite1' 'libxext6' 'libxfixes3' 'libxrandr2' 'libxrender1')

if [[ "$CARCH" == "i686" ]]; then
  _arch="x86"
  _md5sum='5d861d23ff514103ffa075e0945b623a'
else
  _arch="$CARCH"
  _md5sum='5d861d23ff514103ffa075e0945b623a'
fi
source=("reditr_amd64.deb")
md5sums=("$_md5sum")

package() {
  cd "$srcdir"
  tar -xf data.tar.gz -C "$pkgdir"
}

Offline

#9 2012-12-15 23:47:03

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,074

Re: Reditr.... only debs and rpms available can I install it?

That's because those are Ubuntu package names, you need to translate them into Arch package names. For example, you have 'libatk1.0-0', but in Arch, that's just part of 'atk'.

Edit, pkgfile can be helpful in determining what the Arch package names are. For example, pkgfile libasound.so tells me that it's part of alsa-lib. Most are easy to find with the normal package search on the front page, but some, like alsa, are more difficult.

Last edited by Scimmia (2012-12-15 23:56:01)

Offline

#10 2012-12-16 00:24:42

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Reditr.... only debs and rpms available can I install it?

Ok I think I've found all but 2 dependencies depends=('gconf' 'alsa-lib' 'atk' 'glibc' 'cairo' 'dbus' 'expat' 'fontconfig' 'freetype2' 'gcc' 'gdk-pixbuf2' 'glib2' 'gtk2' 'nspr' 'nss' 'pango' 'gcc-libs' 'libx11' 'libxcomposite' 'libxext' 'libxfixes' 'libxrandr' 'libxrender')

Missing libudev0  and libstdc++6 libstdc++5 is in extras but it cant find it even after a -Syy?

I've installed using the PKGBUILD as it is but am receiving './reditr_app: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory'?

Offline

#11 2012-12-16 00:33:06

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,074

Re: Reditr.... only debs and rpms available can I install it?

libstdc++6 is in gcc-libs.

libudev is part of systemd. libudev.so.0 is old, though, Arch ships libudev.so.1. The binary file would need to be rebuilt against the newer library. I don't know if you'd be able to find just the old lib and install it side by side with the new one or not.

Edit, have you checked the RPM files? Fedora using systemd may very well have the newer udev lib, so that binary may be linked to it instead.

Last edited by Scimmia (2012-12-16 00:39:27)

Offline

#12 2012-12-16 00:41:31

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Reditr.... only debs and rpms available can I install it?

Scimmia wrote:

libstdc++6 is in gcc-libs.

libudev is part of systemd. libudev.so.0 is old, though, Arch ships libudev.so.1. The binary file would need to be rebuilt against the newer library. I don't know if you'd be able to find just the old lib and install it side by side with the new one or not.

Thanks. I tried ln -s /usr/lib/libudev.so.1 /usr/lib/libudev.so.0 but it just pops up the node-webkit.

I've asked where the source code is. There isn't any mention of the licence on the website so it might not be open source. Thanks for your help anyway.

Offline

#13 2012-12-16 11:36:56

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Reditr.... only debs and rpms available can I install it?

Post from on of the developers on redit

[–]kortankDeveloper 2 points 8 hours ago

We're closed source at the moment and we intend to stay that way for a bit. We will release a detailed license soon.

Offline

#14 2012-12-19 04:29:06

AJCR
Member
Registered: 2012-12-14
Posts: 14

Re: Reditr.... only debs and rpms available can I install it?

fixles wrote:

Post from on of the developers on redit

[–]kortankDeveloper 2 points 8 hours ago

We're closed source at the moment and we intend to stay that way for a bit. We will release a detailed license soon.

I'm also looking into installing this. Did you have any luck? I tried using alien_package_converter with the -t and -i flags to convert it from .deb to tgz and then install it, but alien failed.

Offline

#15 2012-12-19 10:13:19

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Reditr.... only debs and rpms available can I install it?

AJCR wrote:

I'm also looking into installing this. Did you have any luck? I tried using alien_package_converter with the -t and -i flags to convert it from .deb to tgz and then install it, but alien failed.

No I managed to install it with a PKGBUILD file but reditr wont run on arch linux beacuse it relies on old libraries that arent available. Reditr needs to be recompiled from source but it isnt open source.

Offline

Board footer

Powered by FluxBB