You are not logged in.
Anyone up to creating a PKGBUILD for this mpd client please?
Offline
ummm wow that looks familiar...
can't be too hard to package... but it will involve mono... some people struggle there
Offline
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
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
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
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
actually I was thinking of miqorz's SharpMusic... never tried PyMPC 8)
Offline
Oohh... I'll have to try PyMPC. Looks like a good replacement for Rhythmbox, which has something of a tendency to freeze up.
(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
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 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
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
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
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
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.
Offline
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
Offline
That's not how you run mono executables...
'mono /usr/bin/mpcsharp.exe'
Offline
> /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
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