aur/couchpotato-git to 2993.b69f8b7-2, fixes #806

This commit is contained in:
Kevin Mihelich 2014-04-16 00:42:35 +00:00
parent 8e91bb8fd3
commit 9e765512bf

View file

@ -3,7 +3,7 @@
pkgname=couchpotato-git
_gitname=CouchPotatoServer
pkgver=2993.b69f8b7
pkgrel=1
pkgrel=2
pkgdesc="Automatic Movie Downloading via NZBs & Torrent"
arch=('any')
url="http://couchpota.to/"
@ -19,6 +19,16 @@ pkgver() {
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
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' \
{} +
}
package() {
mkdir -p "${pkgdir}/opt/"
cp -r "$srcdir/$_gitname" "${pkgdir}/opt/couchpotato"