# Maintainer: willemw # Contributor: Ben Ruijl _giturl=https://github.com/CouchPotato/CouchPotatoServer.git pkgname=couchpotato-git pkgver=2.6.1.r1261.g6f36f917 pkgrel=1 pkgdesc="Automatic Movie Downloading via NZBs & Torrents" arch=('any') url="http://couchpota.to/" license=('GPL3') makedepends=('git') # 'python2-pyopenssl' is deprecated depends=('python2-lxml') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") install=$pkgname.install source=('couchpotato.service' 'couchpotato.sysusers' "$pkgname::git+$_giturl#branch=develop") md5sums=('f03b752e2a46030a9cafa38385f3d0df' '1b826a61b26b5ec098b720bac02f4232' 'SKIP') pkgver() { cd $pkgname git describe --long --tags | sed 's|^build/||;s/\([^-]*-g\)/r\1/;s/-/./g' } package() { install -Dm644 couchpotato.service "$pkgdir/usr/lib/systemd/system/couchpotato.service" install -Dm644 couchpotato.sysusers "$pkgdir/usr/lib/sysusers.d/couchpotato.conf" install -dm755 "$pkgdir/opt/couchpotato/data" cd $pkgname install 755 -d "$pkgdir/opt/couchpotato/app" cp -a . "$pkgdir/opt/couchpotato/app" # Set URL for the built-in updater git -C "$pkgdir/opt/couchpotato/app" remote set-url origin $_giturl }