mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
update couchpotato to pacman 4.1
This commit is contained in:
parent
edacac7bdd
commit
56ce292dba
1 changed files with 12 additions and 21 deletions
|
@ -1,7 +1,12 @@
|
|||
# Maintainer: Ben Ruijl <benruyl at gmail>
|
||||
|
||||
pkgname=couchpotato-git
|
||||
pkgver=20120812
|
||||
pkgver=1796.0eff4f0
|
||||
pkgver() {
|
||||
cd "$srcdir/$pkgname"
|
||||
echo $(git rev-list --count master).$(git rev-parse --short master)
|
||||
}
|
||||
epoch=1
|
||||
pkgrel=1
|
||||
pkgdesc="Automatic Movie Downloading via NZBs & Torrent"
|
||||
arch=('i686' 'x86_64')
|
||||
|
@ -11,32 +16,18 @@ 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')
|
||||
source=('couchpotato' 'couchpotato.init' 'couchpotato.conf' 'couchpotato_systemd.conf' 'couchpotato.service' "$pkgname::git://github.com/RuudBurger/CouchPotatoServer.git")
|
||||
md5sums=('a7db842a8af532847ef41890f6714819'
|
||||
'a7711d04d2db7de96f067e484c29f709'
|
||||
'2c3c045ae9c5f5bf4bc0972917c19071'
|
||||
'c22c7a797415131baf0fbe092132abda'
|
||||
'bdedef6bcb8d04c534bd094047885fa7')
|
||||
'bdedef6bcb8d04c534bd094047885fa7'
|
||||
'SKIP')
|
||||
|
||||
_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"
|
||||
package() {
|
||||
install -d "${pkgdir}/opt/"
|
||||
cp -dpr --no-preserv=ownership "$srcdir/$pkgname" "${pkgdir}/opt/couchpotato"
|
||||
|
||||
install -D -m755 "${srcdir}/couchpotato" "${pkgdir}/usr/bin/couchpotato"
|
||||
install -D -m755 "${srcdir}/couchpotato.init" "${pkgdir}/etc/rc.d/couchpotato"
|
||||
|
|
Loading…
Reference in a new issue