updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / lastfmproxy / PKGBUILD
blobd106430b2690e7e11cdb8ab66a62c4abc1d7dd5c
1 #Contributor: Will Foran <will.foran@gmail.com>
2 #copy-paste from quantax
4 pkgname=lastfmproxy
5 pkgver=1.3b
6 pkgrel=2
7 pkgdesc="A proxy server for the last.fm radio streams that allows you to use your regular old audio player to listen to the last.fm streams."
8 url="http://vidar.gimp.org/lastfmproxy"
9 license='GPL-2'
10 depends=('python')
11 makedepends=()
12 conflicts=()
13 replaces=()
14 backup=()
15 arch=('i686' 'x86_64')
16 source=(http://vidar.gimp.org/wp-content/uploads/2007/12/$pkgname-$pkgver.tar.gz)
17 md5sums=('6cc0def3634080e2610f99425cc85a82')
19 build() {
20 cd $startdir/src/$pkgname-$pkgver
22 # create directories
23 install -d $startdir/pkg/usr/share/lastfmproxy/ \
24 $startdir/pkg/usr/share/lastfmproxy/data/ \
25 $startdir/pkg/usr/bin/
27 # install everything
28 #install -D -m 644 * $startdir/pkg/usr/share/lastfmproxy/
29 cp -r * $startdir/pkg/usr/share/lastfmproxy/
30 chmod -R 644 $startdir/pkg/usr/share/lastfmproxy/*
31 install -D -m 644 data/* $startdir/pkg/usr/share/lastfmproxy/data/
32 install -D -m 755 main.py changestation.py $startdir/pkg/usr/share/lastfmproxy/
34 # create additional executables in $PATH
35 cd $startdir/pkg/usr/bin/
36 # launcher
37 echo "#!/bin/sh
38 /usr/share/lastfmproxy/main.py" > lastfmproxy
39 # firefox protocol handler
40 echo "#!/bin/sh
41 /usr/share/lastfmproxy/changestation.py \$@" > lastfmproxy-station
43 chmod 755 lastfmproxy lastfmproxy-station