
corrected shell-fm PKGBUILD
By: a guest on
Sep 10th, 2010 | syntax:
None | size: 0.94 KB | hits: 60 | expires: Never
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
pkgname=shell-fm-git
pkgver=20100910
pkgrel=1
pkgdesc="A console based player for the streams provided by Last.FM"
arch=('i686' 'x86_64')
url="http://nex.scrapping.cc/code/shell-fm/"
license=('GPL')
depends=('libmad' 'libao')
makedepends=('git')
provides=('shell-fm')
conflicts=('shell-fm')
source=()
md5sums=()
_gitroot="git://github.com/jkramer/shell-fm.git"
_gitname="shell-fm"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d "$srcdir/$_gitname" ] ; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot"
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
make || return 1
make DESTDIR="$pkgdir" install || return 1
}