You are not logged in.

#1 2005-12-13 03:01:57

sputnik
Member
From: Canada
Registered: 2005-06-24
Posts: 98

GNUpod

http://www.gnu.org/software/gnupod/

If i knew how to make pkgbuild i would, but im still learning. would be great if someone could make one for gnupod.

thanks.

Offline

#2 2005-12-14 18:45:17

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: GNUpod

I can make it for you. smile

But why GNUpod and not GTKPod?


Arch - It's something refreshing

Offline

#3 2005-12-14 19:34:56

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: GNUpod

Her you go: http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

I have not tested it, so just PM or e-mail me if anything is not working.


Arch - It's something refreshing

Offline

#4 2005-12-14 22:20:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

I've added some comments in the AUR, whargoul. Let me know what you think.

Offline

#5 2005-12-14 22:44:54

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: GNUpod

I really don't now what you mean in your last message.


Arch - It's something refreshing

Offline

#6 2005-12-14 23:55:31

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

Well ... you've responded to my comments in the AUR.

What exactly don't you understand?

Offline

#7 2005-12-15 21:17:01

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: GNUpod

Allright this is a lot harder than I thought. There is no variable to change were gnupod should place it modules. So I need to change the Makefile directly.
The Makefile looks like this:

# Makefile for GNUpod
#
prefix       = /var/abs/local/gnupod/pkg/usr
exec_prefix  = ${prefix}
bindir       = ${exec_prefix}/bin
infodir      = ${prefix}/info
mandir       = ${prefix}/man
perlbinary   = /usr/bin/perl
pkgver       = 0.98.3
pkgfname     = gnupod-0.98.3
pkgdir       = gnupod-0.98.3-noarch-1au
----

I need to change 'perlbinary' to /var/abs/local/gnupod/pkg/usr/lib/perl5 (or something like that). This has to be done with 'sed', witch I can't figure out how to use. So maby one here could provide the right command.


Arch - It's something refreshing

Offline

#8 2005-12-15 22:10:31

sputnik
Member
From: Canada
Registered: 2005-06-24
Posts: 98

Re: GNUpod

Thanks for all the help guys, I want to use gnupod instead of gtkpod because it works from the command line. Looks like theres some problems with it, If its too much work whargoul dont worry about it.

Offline

#9 2005-12-15 23:47:43

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

whargoul wrote:

I need to change 'perlbinary' to /var/abs/local/gnupod/pkg/usr/lib/perl5 (or something like that).

I don't think that would work. The perlbinary variable is used to identify the location of perl, in this case /usr/bin/perl, and it is used further down in the Makefile to run a perl install script called gnupod_install.pl. If you change it as you suggest, that script will no longer run.

As you may have gathered, I've been looking at this too, and having seen what gnupod_install.pl does, and bearing in mind that these are scripts, and therefore don't need compiling, I've come up with a PKGBUILD that ignores the install script altogether - it just installs stuff in the right places, and then tidies up a bit. See what you think:

# Contributor: Tom K <tomk@runbox.com>
pkgname=gnupod
pkgver=0.98.3
pkgrel=1
pkgdesc="a collection of Perl-Scripts which allow you to use your iPod under GNU/Linux "
depends=('mp3-info' 'perl-unicode-string' 'perlxml')
source=(http://blinkenlights.ch/$pkgname-dist/stable/$pkgname-$pkgver.tgz)
md5sums=('a2db678aa2098a5b019fc3e4dc380afc')
url="http://www.gnu.org/software/gnupod/"

build() {
  cd $startdir/src/$pkgname-$pkgver

  #Create pkg dirs
  mkdir -p $startdir/pkg/usr/bin $startdir/pkg/usr/man/man1 
  $startdir/pkg/usr/lib/perl5/current/i686-linux-thread-multi/GNUpod

  #Ignore brain-dead install script, and do the Arch thing
  install -m 755 src/*.pl $startdir/pkg/usr/bin
  install -m 644 man/* $startdir/pkg/usr/man/man1
  install -m 444 src/ext/* $startdir/pkg/usr/lib/perl5/current/i686-linux-thread-multi/GNUpod

  #Tidy up after ignoring brain-dead install script :P
  cd /$startdir/pkg/usr/bin
  for i in `ls` ;
  do sed -i "s:##__PERLBIN__###:!/usr/bin/perl:;s:###__VERSION__###:$pkgver:" $i ;
  done
}

I can't test this fully, because I don't have an iPod (I did it to try to learn a bit more, that's all), but I have installed it, and I'm getting sane-looking responses.

Try it out, and if you think it's rubbish, that's OK - just tell me about it.

Offline

#10 2005-12-16 00:23:20

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: GNUpod

tomk wrote:

I've come up with a PKGBUILD that ignores the install script altogether - it just installs stuff in the right places, and then tidies up a bit. See what you think:

Yup, that's totally valid - I've had to do that a handful of times... remove an install script and just do a handful of 'cp's or 'install's

Offline

#11 2005-12-17 00:11:46

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: GNUpod

That looks quite good. I think I just remove my PKGBUILD.

I have an iPod, but after 1½ years, it behave stranges sometimes, so I am a little afraid that GNUpod will screw it.


Arch - It's something refreshing

Offline

#12 2005-12-17 00:24:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

OK - I understand your concern. If I had an iPod, I'd think twice about messing with it too.

sputnik - how do you feel about testing my PKGBUILD? I'd like to put it in the AUR, but only if it works, of course. tongue

Offline

#13 2005-12-21 20:21:48

sputnik
Member
From: Canada
Registered: 2005-06-24
Posts: 98

Re: GNUpod

tomk wrote:

OK - I understand your concern. If I had an iPod, I'd think twice about messing with it too.

sputnik - how do you feel about testing my PKGBUILD? I'd like to put it in the AUR, but only if it works, of course. tongue

sorry been a bit busy, i will test it out tonight. thanks a lot.

i will let you know.

Offline

#14 2006-01-14 14:10:54

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: GNUpod

sputnik wrote:
tomk wrote:

OK - I understand your concern. If I had an iPod, I'd think twice about messing with it too.

sputnik - how do you feel about testing my PKGBUILD? I'd like to put it in the AUR, but only if it works, of course. tongue

sorry been a bit busy, i will test it out tonight. thanks a lot.

i will let you know.

So did it work?


Arch - It's something refreshing

Offline

#15 2006-01-24 17:57:02

sputnik
Member
From: Canada
Registered: 2005-06-24
Posts: 98

Re: GNUpod

Sorry, i forgot... It works!
Just make sure you run:

gnupod_INIT.pl -m /mnt/ipod

before you start adding songs.

Offline

#16 2006-01-24 19:34:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

Thanks sputnik - it's now in the AUR.

Offline

#17 2006-02-22 02:25:41

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: GNUpod

Thanks tomk!  I *MUCH* prefer gnupod to gtkpod.  Much.  I imagined it would be a royal pita to manage music via the command line, but it's actually not at all.  It's brilliant.  I was looking at installing it myself but found this in the AUR.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#18 2006-02-22 05:10:04

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: GNUpod

One better, I put it in community (mainly because I needed to use it too wink

tomk, if you want the package back when you get your TU, lemme know.

iphitus

Offline

#19 2006-02-22 08:26:26

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

Snarkout - my pleasure. I'm glad you like it.

iphitus - nah, that's cool. I don't use it myself, so it would make more sense for someone that does to maintain it.

Offline

#20 2006-02-23 12:58:44

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

iph - gnupod is now showing as an orphan. It's that adoption "feature" again, isn't it? Adopt, move to [community], adopt again - or something like that.......

Offline

#21 2006-02-23 19:06:48

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: GNUpod

Yes. Each time a package is moved from unsupported to community, it gets orphaned. So you must remember to readopt it. I don't know why we have that behavior. Could be because of the way unsupported and community interact between each other.

Offline

#22 2006-02-23 21:53:56

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: GNUpod

Yeah, I didnt re-adopt it in case tomk wanted it. I'll adopt it tonight....

Offline

#23 2006-03-12 06:58:59

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: GNUpod

iphitus wrote:

One better, I put it in community (mainly because I needed to use it too wink

tomk, if you want the package back when you get your TU, lemme know.

iphitus

Awesome - that rocks!  It's amazing that command line management could be so easy -- being able to manage my music w/o having an X session kicks ass.  All that's really missing from gnupod is a recursive option and an ignore option for the addsong command.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#24 2006-03-12 09:39:17

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GNUpod

Drop a mail to the dev with those ideas - as he says on the website:

GNUpod Dev wrote:

If you have any cool ideas or other things to tell me, please use pab at blinkenlights.ch to get in contact.

Offline

#25 2006-11-17 16:21:02

drfindley
Member
Registered: 2003-10-30
Posts: 46
Website

Re: GNUpod

Has anyone gotten gnupod to make the special ipod podcast playlist? I would really like to have my podcasts bookmarked, and I can't quite seem to make it work right

Offline

Board footer

Powered by FluxBB