PKGBUILDs/aur/couchpotato-git/PKGBUILD

38 lines
910 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
2014-08-10 20:45:52 +00:00
pkgver=3613.e75a852
2014-06-21 02:55:50 +00:00
pkgrel=1
2011-02-28 03:00:10 +00:00
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
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
2013-05-21 22:08:05 +00:00
}
2011-02-28 03:00:10 +00:00
prepare() {
cd $_gitname
# Use Python 2
find . -type f -exec sed -i -r \
-e 's|/usr/bin/python$|&2|g' \
-e 's|(/usr/bin/python2)\.4$|\1|g' \
{} +
}
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
}