diff options
author | Ricardo Constantino | 2021-03-12 23:37:01 +0000 |
---|---|---|
committer | Ricardo Constantino | 2021-03-12 23:40:00 +0000 |
commit | 7921287392ab7c6e72d679afe9708b23de9f426a (patch) | |
tree | 0400fbdc16d02da5304c34a75953761f47ae41ed /PKGBUILD | |
download | aur-plex-anilist-bundle-git.tar.gz |
First commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..582247693012 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: RiCON <wiiaboo@gmail.com> +pkgdesc='Plex HTTP Anilist Metadata Agent' +pkgname=plex-anilist-bundle-git +pkgver=r21.ebcb3b9 +pkgrel=1 +depends=('plex-media-server' 'plex-ass-scanner-git') +arch=('x86_64' 'i686') +url='https://github.com/sachaw/anilist.bundle' +license=('GPL3') +source=( + "${pkgname}::git+${url}.git" +) +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" + + plugins_dir="${plex_main_folder}/Plug-ins/AniList.bundle" + install -d "$plugins_dir" + cp -r ./${pkgname}/* "$plugins_dir" +} |