You are not logged in.

#1 2005-05-25 22:37:34

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

[Req] mpcsharp - mpc client

Anyone up to creating a PKGBUILD for this mpd client please?

http://pympc.sourceforge.net/mpcsharp/

Offline

#2 2005-05-25 22:40:21

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

Re: [Req] mpcsharp - mpc client

ummm wow that looks familiar...

can't be too hard to package... but it will involve mono... some people struggle there

Offline

#3 2005-05-25 22:57:37

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: [Req] mpcsharp - mpc client

phrakture wrote:

ummm wow that looks familiar...there

It looks exactly like PyMPC. Maybe you might want to try that since I've already made a PKGBUILD for it wink

pkgname=pympc
pkgver=20050330
pkgrel=1
pkgdesc="PyGTK MPD client"
url="http://sourceforge.net/projects/pympc/"
source=(http://jaist.dl.sourceforge.net/sourceforge/pympc/pympc-20050330.tar.gz)
depends=('mpd' 'pygtk')
md5sums=()

build() {
    cd $startdir/src/$pkgname-$pkgver
    python setup.py install --prefix $startdir/pkg/usr
}

Offline

#4 2005-05-25 23:07:38

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Req] mpcsharp - mpc client

Cam: Thanks for that.

Unfortunately, it gives me the following error:

Traceback (most recent call last):
  File "/usr/bin/pympc", line 50, in ?
    app = pympc.Pympc()
AttributeError: 'module' object has no attribute 'Pympc'

Any suggestions?

Also, which version of pympc does your build correspond to - 0.1.1 0.2 or 0.3?

Offline

#5 2005-05-25 23:08:59

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

Re: [Req] mpcsharp - mpc client

Cam wrote:
phrakture wrote:

ummm wow that looks familiar...there

It looks exactly like PyMPC. Maybe you might want to try that since I've already made a PKGBUILD for it wink

actually I was thinking of miqorz's SharpMusic... never tried PyMPC 8)

Offline

#6 2005-05-25 23:42:33

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [Req] mpcsharp - mpc client

Oohh... I'll have to try PyMPC. Looks like a good replacement for Rhythmbox, which has something of a tendency to freeze up. roll

(Yep, I use Rhythmbox because GStreamer is already there... Yeah, I ought to rebuild those parts of GNOME that depend on GStreamer... Damned if I know why GStreamer support is compiled in by default... whatever...)

Offline

#7 2005-05-26 10:14:15

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: [Req] mpcsharp - mpc client

I've uninstalled pretty much all of GNOME, I'm pretty proud. I was using Rhythmbox because I liked it's catalogue but I didn't like the deps. I tried PyMPC and it worked alright but I've since written my own MPD client in Python/PyGTK. I'd share it but it's very much based around my directory layout since it was just for me pretty much.

Cotton: The PKGBUILD... from what I can make out on the site it's versioned on a release date basis, so I'm not sure how it corresponds to your list. If you have a better resource let me know smile The PKGBUILD isn't fancy and won't be submitted to AUR or anything like that, I just wrote it because I made a deal with myself, I only install stuff via pacman these days, that way I can keep track of it all since PKGBUILDs are pretty easy to chuck together.

Offline

#8 2005-05-26 10:20:03

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: [Req] mpcsharp - mpc client

phrakture: I had a look at SharpMusic, but it needs gtk-sharp and that package depends on all of GNOME pretty much which is why I uninstalled Rhythmbox. I know I could compile gtk-sharp from ABS because it's only one file that has all the dependencies (I read about the hook DLL somewhere) but this way I learned even more Python, how to use it to write GTK+ apps so I'm pretty happy smile

Also, you might be getting the pympc errors cause you needs py-libmpdclient too, I generally stuff up my deps lists in package builds, sorry about that.

pkgname=py-libmpdclient
pkgver=0.10.0
pkgrel=1
pkgdesc="Python module for MPD"
url="http://www.musicpd.org"
source=(http://mercury.chem.pitt.edu/~shank/py-libmpdclient-0.10.0.tar.gz)
depends=('python' 'mpd')
md5sums=()

build() {
    cd $startdir/src/$pkgname-$pkgver
    python setup.py install --prefix $startdir/pkg/usr
}

[edit]
Actually you don't need that module, pympc ships with a hacked one. It works for me off the bat so I'll have a play and see what I can do...
[/edit]

Offline

#9 2005-05-26 20:14:10

whatah
Member
Registered: 2003-08-10
Posts: 114

Re: [Req] mpcsharp - mpc client

it looks like mpcsharp is a more developed version of pympc. Just out of curiosity, where did you find out about mpcsharp? I was able to get it to compile and install and run, but it crashes when i try going to preferences. I want to get in touch with the developer and see what he says.

Offline

#10 2005-05-27 04:30:16

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: [Req] mpcsharp - mpc client

Just a small note, I stopped development on SharpMusic a while back due to lack of interest. I might do a complete port to C one day.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#11 2005-05-27 05:30:08

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Req] mpcsharp - mpc client

whatah:  It was mentioned on the musicpd.org forum:

http://www.musicpd.org/forum/viewtopic.php?t=650

I've installed the develpoment sharp libs using abs and compiled mpcsharp but the executable file it created is called mpcsharp.exe which reports:

bash: /usr/bin/mpcsharp.exe: cannot execute binary file

hmm

Offline

#12 2005-05-27 05:37:25

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: [Req] mpcsharp - mpc client

That's not how you run mono executables...

'mono /usr/bin/mpcsharp.exe'


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#13 2005-05-27 09:12:39

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: [Req] mpcsharp - mpc client

> /usr/bin/mpcsharp.exe
you can run mono binaries this way, if you have misc binary support in your kernel and then start the mono daemon, which registers .net binaries with mono (at least as far as I know)

btw.: has anyone created a pkgbuild yet?

Offline

#14 2005-05-27 13:37:48

whatah
Member
Registered: 2003-08-10
Posts: 114

Re: [Req] mpcsharp - mpc client

yeah, here's a pkgbuild. I ripped the pkgbuild for some other mono app and used it for mpcsharp:
PKGBUILD

pkgname=mpcsharp
pkgver=0.3.0
pkgrel=1
pkgdesc="A mono based mpd client."
url="http://pympc.sourceforge.net/mpcsharp/"
license="GPL"
depends=(mpd gtk-sharp-2)
makedepends=()
conflicts=()
replaces=()
backup=()
install=mpcsharp.install
source=(http://pympc.sourceforge.net/mpcsharp/$pkgname-$pkgver.tar.gz)
md5sums=('e91b37552d2675a273b9480466a2f0b1')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome --disable-schemas-install
  make || return 1
  make DESTDIR=$startdir/pkg install
}

mpcsharp.install

schemas=(
  '/opt/gnome/etc/gconf/schemas/MpcSharp.schemas'
)

post_install() {
  for schema in "${schemas[@]}" ; do
    GCONF_CONFIG_SOURCE=`/opt/gnome/bin/gconftool-2 --get-default-source` /opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1
  done
}

post_upgrade() {
  post_install $2
}

pre_remove() {
  /bin/true
}

op=$1
shift

$op $*

It errors out when I try to go to the preferences, I want to get in contact with the author to see what I might be doing wrong.

Offline

Board footer

Powered by FluxBB