PKGBUILDs/aur/couchpotato-git/PKGBUILD

47 lines
1.6 KiB
Bash
Raw Normal View History

2011-02-28 03:00:10 +00:00
# Maintainer: Ben Ruijl <benruyl at gmail>
pkgname=couchpotato-git
2012-10-13 22:26:49 +00:00
pkgver=20120812
2011-02-28 03:00:10 +00:00
pkgrel=1
pkgdesc="Automatic Movie Downloading via NZBs & Torrent"
arch=('i686' 'x86_64')
2012-10-13 22:26:49 +00:00
url="http://couchpota.to/"
2011-02-28 03:00:10 +00:00
license=('unknown')
depends=('python2')
makedepends=('git')
install='couchpotato.install'
2012-10-13 22:26:49 +00:00
backup=('etc/conf.d/couchpotato' 'etc/conf.d/couchpotato_systemd')
source=('couchpotato' 'couchpotato.init' 'couchpotato.conf' 'couchpotato_systemd.conf' 'couchpotato.service')
2011-02-28 03:00:10 +00:00
md5sums=('a7db842a8af532847ef41890f6714819'
2012-10-13 22:26:49 +00:00
'a7711d04d2db7de96f067e484c29f709'
'2c3c045ae9c5f5bf4bc0972917c19071'
'c22c7a797415131baf0fbe092132abda'
'bdedef6bcb8d04c534bd094047885fa7')
2011-02-28 03:00:10 +00:00
2012-10-13 22:26:49 +00:00
_gitroot="git://github.com/RuudBurger/CouchPotatoServer.git"
2011-02-28 03:00:10 +00:00
_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"
2012-10-13 22:26:49 +00:00
install -D -m644 "${srcdir}/couchpotato.conf" "${pkgdir}/etc/conf.d/couchpotato"
install -D -m644 "${srcdir}/couchpotato_systemd.conf" "${pkgdir}/etc/conf.d/couchpotato_systemd"
install -D -m644 "${srcdir}/couchpotato.service" "${pkgdir}/usr/lib/systemd/system/couchpotato.service"
2011-02-28 03:00:10 +00:00
}