summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 149d68eebf5c6795423fde9827da048c3d3c5251 (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
# Maintainer: Ricardo Constantino <ricardo@tsu.re>
# Maintainer: Frantic1048 <archer@frantic1048.com>
pkgdesc='Plex HTTP Anidb Metadata Agent (HAMA)'
pkgname=plex-hama-git
pkgver=r1072.bb684a2
pkgrel=1
makedepends=('git')
depends=('plex-media-server' plex-ass-scanner-git)
conflicts=('plex-hama-bundle-git')
provides=('plex-hama-bundle-git')
arch=('x86_64' 'i686')
url='https://github.com/ZeroQI/Hama.bundle'
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)
	)
}

build () {
	:
}

package () {
	cd "${srcdir}"

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

	plugins_dir="${plex_main_folder}/Plug-ins/hama.bundle"
	install -d "$plugins_dir"
	cp -r ./$pkgname/* "$plugins_dir"
}