summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4031fc408e1c616c5f668f758cd5bc083c64e3c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Submitter: Justin Dray <justin@dray.be>
# Maintainer: Côme Chilliet <come@chilliet.eu>

pkgname=sickbeard-mcmic
pkgver=r4997.282f486
pkgrel=1
epoch=1
pkgdesc="A PVR application that downloads and manages your TV shows. Sickbeard version with working kickass support"
arch=('any')
url="https://github.com/mcmic/Sick-Beard"
license=('GPL3')
depends=('python2' 'python2-cheetah')
makedepends=('git')
optdepends=('sabnzbd: NZB downloader'
            'python2-notify: desktop notifications')
options=('!strip')
install=sickbeard.install
conflicts=('sickbeard')
source=("$pkgname::git://github.com/mcmic/Sick-Beard.git"
        'sickbeard-system.service'
       	'sickbeard-user.service'
       	'sickbeard.tmpfile')
sha256sums=('SKIP'
            'aa2b6496bf622d2b235a47b80d950ba84411e879a08bc656d227e224653aeded'
            'bf2f9792d3d7e1d703fec9bf61a1562a34b8d08d1dba3d560e6299ea25bd5a72'
            '24f20de2445ff3998aad5d87d94e0fea3b22eb1d0a451ed33ec301ac36a7398d')

pkgver() {
	cd $pkgname
	git checkout ThePirateBay > /dev/null 2>&1
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	mkdir -p "$pkgdir"/opt/sickbeard
	chmod 775 "$pkgdir"/opt/sickbeard
	cp -r $pkgname/* "$pkgdir"/opt/sickbeard

	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

	find "$pkgdir" -type d -name '.git' -exec rm -r '{}' +
}