2013-01-12 00:24:04 +00:00
|
|
|
# Maintainer: sudokode <sudokode@gmail.com>
|
2012-08-28 15:44:46 +00:00
|
|
|
# Previous Maintainer: Crass00 <crass00 at hotmail dot com>
|
|
|
|
# Previous Maintainer: Superstar655 <choman000 at hotmail dot com>
|
|
|
|
# Contributor: Augusto Born de Oliveira <augustoborn at gmail dot com>
|
|
|
|
|
|
|
|
pkgname=sickbeard-git
|
2013-04-04 15:49:54 +00:00
|
|
|
pkgver=20130212
|
2013-02-02 00:03:21 +00:00
|
|
|
pkgrel=1
|
2012-08-28 15:44:46 +00:00
|
|
|
pkgdesc="A PVR application that downloads and manages your TV shows"
|
|
|
|
arch=(any)
|
|
|
|
url="http://code.google.com/p/sickbeard/"
|
|
|
|
license=(GPL3)
|
|
|
|
depends=(python2 python2-cheetah)
|
|
|
|
makedepends=(git)
|
|
|
|
optdepends=('sabnzbd: NZB downloader'
|
2013-01-12 00:24:04 +00:00
|
|
|
'python-notify: desktop notifications')
|
2012-08-28 15:44:46 +00:00
|
|
|
install=sickbeard.install
|
|
|
|
conflicts=(sickbeard)
|
2013-04-04 15:49:54 +00:00
|
|
|
source=('sickbeard-system.service' 'sickbeard-user.service' 'sickbeard.tmpfile')
|
|
|
|
sha256sums=('aa2b6496bf622d2b235a47b80d950ba84411e879a08bc656d227e224653aeded'
|
2013-02-02 00:03:21 +00:00
|
|
|
'bf2f9792d3d7e1d703fec9bf61a1562a34b8d08d1dba3d560e6299ea25bd5a72'
|
|
|
|
'24f20de2445ff3998aad5d87d94e0fea3b22eb1d0a451ed33ec301ac36a7398d')
|
2012-08-28 15:44:46 +00:00
|
|
|
|
|
|
|
_gitroot="git://github.com/midgetspy/Sick-Beard.git"
|
|
|
|
_gitname="sickbeardpvr"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
|
|
|
|
if [ -d $_gitname ]; then
|
|
|
|
cd $_gitname && git pull origin
|
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
|
|
|
git clone $_gitroot $_gitname
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
msg "Starting install..."
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "${pkgdir}/opt/"
|
|
|
|
cp -r "$srcdir/$_gitname" "${pkgdir}/opt/sickbeard"
|
2013-01-12 00:24:04 +00:00
|
|
|
chmod 775 "${pkgdir}/opt/sickbeard"
|
2012-08-28 15:44:46 +00:00
|
|
|
|
|
|
|
sed -i 's/python/python2/g' "${pkgdir}/opt/sickbeard/autoProcessTV/sabToSickBeard.py"
|
|
|
|
sed -i 's/python/python2/g' "${pkgdir}/opt/sickbeard/autoProcessTV/hellaToSickBeard.py"
|
|
|
|
|
2013-01-12 00:24:04 +00:00
|
|
|
install -D -m644 "${srcdir}/sickbeard-system.service" "${pkgdir}/usr/lib/systemd/system/sickbeard.service"
|
|
|
|
install -D -m644 "${srcdir}/sickbeard-user.service" "${pkgdir}/usr/lib/systemd/user/sickbeard.service"
|
2012-08-28 15:44:46 +00:00
|
|
|
install -D -m644 "${srcdir}/sickbeard.tmpfile" "${pkgdir}/usr/lib/tmpfiles.d/sickbeard.conf"
|
|
|
|
}
|
|
|
|
|