summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5f9bbc742f0e2676a7597d44c8d43f34a150c2f (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
# Maintainer: RiCON <wiiaboo@gmail.com>
pkgdesc='Plex Absolute Series Scanner'
pkgname=plex-ass-scanner-git
pkgver=r1043.9d24e60
pkgrel=1
depends=('plex-media-server')
arch=('x86_64' 'i686')
url='https://github.com/ZeroQI/Absolute-Series-Scanner'
license=('GPL3')
source=(
"${pkgname}::git+${url}"
)
sha512sums=('SKIP')

pkgver () {
	cd "${srcdir}"
	(
		set -o pipefail
        cd $pkgname
		printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
	)
}

package () {
	cd "${srcdir}"

  #https://wiki.archlinux.org/index.php/plex#Plugins
	plex_main_folder="${pkgdir}/var/lib/plex/Plex Media Server"

	scanners_dir="${plex_main_folder}/Scanners/Series"
	install -d "$scanners_dir"
	cp -f $pkgname/Scanners/Series/"Absolute Series Scanner.py" "$scanners_dir"/
}