PKGBUILDs/aur/couchpotato-git/PKGBUILD

44 lines
1.1 KiB
Bash
Raw Normal View History

2011-02-28 03:00:10 +00:00
# Maintainer: Ben Ruijl <benruyl at gmail>
plugrel=1
pkgname=couchpotato-git
2011-07-04 16:37:19 +00:00
pkgver=20110704
2011-02-28 03:00:10 +00:00
pkgrel=1
pkgdesc="Automatic Movie Downloading via NZBs & Torrent"
arch=('i686' 'x86_64')
url="http://couchpotatoapp.com/"
license=('unknown')
depends=('python2')
makedepends=('git')
2011-05-17 21:49:32 +00:00
provides=('couchpotato')
2011-02-28 03:00:10 +00:00
install='couchpotato.install'
source=('couchpotato' 'couchpotato.init')
md5sums=('a7db842a8af532847ef41890f6714819'
'6f247a743fd17aa38e99f64e6e123978')
_gitroot="git://github.com/RuudBurger/CouchPotato.git"
_gitname="couchpotato_src"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ]; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting install..."
mkdir -p "${pkgdir}/opt/"
cp -r "$srcdir/$_gitname" "${pkgdir}/opt/couchpotato"
install -D -m755 "${srcdir}/couchpotato" "${pkgdir}/usr/bin/couchpotato"
install -D -m755 "${srcdir}/couchpotato.init" "${pkgdir}/etc/rc.d/couchpotato"
}