PKGBUILDs/aur/sickbeard-git/PKGBUILD

53 lines
1.7 KiB
Bash
Raw Normal View History

2013-01-12 00:24:04 +00:00
# Maintainer: sudokode <sudokode@gmail.com>
# 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
2015-03-25 12:05:05 +00:00
pkgver=3953.79cb8f2
2014-05-05 00:47:35 +00:00
pkgrel=1
pkgdesc="A PVR application that downloads and manages your TV shows"
2013-04-08 18:27:32 +00:00
arch=('any')
url="http://code.google.com/p/sickbeard/"
2013-04-08 18:27:32 +00:00
license=('GPL3')
depends=('python2' 'python2-cheetah')
makedepends=('git')
optdepends=('sabnzbd: NZB downloader'
2013-06-12 02:51:37 +00:00
'python2-notify: desktop notifications')
install=sickbeard.install
2013-04-08 18:27:32 +00:00
conflicts=('sickbeard')
source=("$pkgname::git://github.com/midgetspy/Sick-Beard.git"
'sickbeard-system.service' 'sickbeard-user.service' 'sickbeard.tmpfile')
sha256sums=('SKIP'
'aa2b6496bf622d2b235a47b80d950ba84411e879a08bc656d227e224653aeded'
2013-02-02 00:03:21 +00:00
'bf2f9792d3d7e1d703fec9bf61a1562a34b8d08d1dba3d560e6299ea25bd5a72'
'24f20de2445ff3998aad5d87d94e0fea3b22eb1d0a451ed33ec301ac36a7398d')
2013-04-08 18:27:32 +00:00
pkgver() {
2013-08-13 01:17:55 +00:00
cd $pkgname
2013-04-08 18:27:32 +00:00
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
2013-08-13 01:17:55 +00:00
prepare() {
cd $pkgname
# Fix python2 shebang
sed -i 's/python/python2/g' autoProcessTV/sabToSickBeard.py
sed -i 's/python/python2/g' autoProcessTV/hellaToSickBeard.py
}
package() {
2013-04-08 18:27:32 +00:00
mkdir -p "$pkgdir"/opt/sickbeard
chmod 775 "$pkgdir"/opt/sickbeard
2013-08-13 01:17:55 +00:00
cp -r $pkgname/* "$pkgdir"/opt/sickbeard
2013-04-08 18:27:32 +00:00
2013-08-13 01:17:55 +00:00
install -D -m644 sickbeard-system.service "$pkgdir"/usr/lib/systemd/system/sickbeard.service
install -D -m644 sickbeard-user.service "$pkgdir"/usr/lib/systemd/user/sickbeard.service
install -D -m644 sickbeard.tmpfile "$pkgdir"/usr/lib/tmpfiles.d/sickbeard.conf
2013-04-08 18:27:32 +00:00
find "$pkgdir" -type d -name '.git' -exec rm -r '{}' +
}
2013-04-08 18:27:32 +00:00
# vim:set ts=2 sw=2 et: