mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Maintainer: Ben Ruijl <benruyl at gmail>
|
|
|
|
plugrel=1
|
|
|
|
pkgname=couchpotato-git
|
|
pkgver=20110517
|
|
pkgrel=1
|
|
pkgdesc="Automatic Movie Downloading via NZBs & Torrent"
|
|
arch=('i686' 'x86_64')
|
|
url="http://couchpotatoapp.com/"
|
|
license=('unknown')
|
|
depends=('python2')
|
|
makedepends=('git')
|
|
provides=('couchpotato')
|
|
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"
|
|
}
|