mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
46 lines
1.6 KiB
Bash
46 lines
1.6 KiB
Bash
# Maintainer: Ben Ruijl <benruyl at gmail>
|
|
|
|
pkgname=couchpotato-git
|
|
pkgver=20120812
|
|
pkgrel=1
|
|
pkgdesc="Automatic Movie Downloading via NZBs & Torrent"
|
|
arch=('i686' 'x86_64')
|
|
url="http://couchpota.to/"
|
|
license=('unknown')
|
|
depends=('python2')
|
|
makedepends=('git')
|
|
install='couchpotato.install'
|
|
backup=('etc/conf.d/couchpotato' 'etc/conf.d/couchpotato_systemd')
|
|
source=('couchpotato' 'couchpotato.init' 'couchpotato.conf' 'couchpotato_systemd.conf' 'couchpotato.service')
|
|
md5sums=('a7db842a8af532847ef41890f6714819'
|
|
'a7711d04d2db7de96f067e484c29f709'
|
|
'2c3c045ae9c5f5bf4bc0972917c19071'
|
|
'c22c7a797415131baf0fbe092132abda'
|
|
'bdedef6bcb8d04c534bd094047885fa7')
|
|
|
|
_gitroot="git://github.com/RuudBurger/CouchPotatoServer.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"
|
|
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"
|
|
}
|