PKGBUILDs/aur/couchpotato-git/PKGBUILD

38 lines
1.4 KiB
Bash
Raw Normal View History

2011-02-28 03:00:10 +00:00
# Maintainer: Ben Ruijl <benruyl at gmail>
pkgname=couchpotato-git
2013-04-08 18:02:45 +00:00
pkgver=1796.0eff4f0
pkgver() {
cd "$srcdir/$pkgname"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
epoch=1
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')
2013-04-08 18:02:45 +00:00
source=('couchpotato' 'couchpotato.init' 'couchpotato.conf' 'couchpotato_systemd.conf' 'couchpotato.service' "$pkgname::git://github.com/RuudBurger/CouchPotatoServer.git")
2011-02-28 03:00:10 +00:00
md5sums=('a7db842a8af532847ef41890f6714819'
2012-10-13 22:26:49 +00:00
'a7711d04d2db7de96f067e484c29f709'
'2c3c045ae9c5f5bf4bc0972917c19071'
'c22c7a797415131baf0fbe092132abda'
2013-04-08 18:02:45 +00:00
'bdedef6bcb8d04c534bd094047885fa7'
'SKIP')
2011-02-28 03:00:10 +00:00
2013-04-08 18:02:45 +00:00
package() {
install -d "${pkgdir}/opt/"
cp -dpr --no-preserv=ownership "$srcdir/$pkgname" "${pkgdir}/opt/couchpotato"
2011-02-28 03:00:10 +00:00
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
}