PKGBUILDs/aur/couchpotato-git/PKGBUILD

28 lines
711 B
Bash
Raw Normal View History

2011-02-28 03:00:10 +00:00
# Maintainer: Ben Ruijl <benruyl at gmail>
pkgname=couchpotato-git
2013-05-21 22:08:05 +00:00
_gitname=CouchPotatoServer
pkgver=f1dde5c
2011-02-28 03:00:10 +00:00
pkgrel=1
pkgdesc="Automatic Movie Downloading via NZBs & Torrent"
2013-05-21 22:08:05 +00:00
arch=('any')
2012-10-13 22:26:49 +00:00
url="http://couchpota.to/"
2013-05-21 22:08:05 +00:00
license=('GPL3')
2011-02-28 03:00:10 +00:00
depends=('python2')
makedepends=('git')
install='couchpotato.install'
2013-05-21 22:08:05 +00:00
source=('git://github.com/RuudBurger/CouchPotatoServer.git' 'couchpotato.service')
md5sums=('SKIP' '82813cd00a17dd78f10756d71c7eb848')
2011-02-28 03:00:10 +00:00
2013-05-21 22:08:05 +00:00
pkgver() {
cd $_gitname
git describe --always | sed 's|-|.|g'
}
2011-02-28 03:00:10 +00:00
2013-04-08 18:02:45 +00:00
package() {
2013-05-21 22:08:05 +00:00
mkdir -p "${pkgdir}/opt/"
cp -r "$srcdir/$_gitname" "${pkgdir}/opt/couchpotato"
2011-02-28 03:00:10 +00:00
2013-05-21 22:08:05 +00:00
install -Dm644 "${srcdir}/couchpotato.service" "${pkgdir}/usr/lib/systemd/system/couchpotato.service"
2011-02-28 03:00:10 +00:00
}