blob: 767d86bd15b181e61e2952228c7d8f212e748407 (
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
|
# Maintainer: Aanok <aanok.aur@gmail.com>
pkgname=pmcli-git
pkgver=r153.e1f9e72
pkgrel=1
pkgdesc="Command line client for Plex Media Server"
arch=('x86_64')
url="https://github.com/Aanok/pmcli"
license=('MIT')
depends=('lua>=5.3' 'lua-http' 'lua-expat' 'mpv')
makedepends=('git')
provides=("${pkgname%-git}")
source=('git+https://github.com/Aanok/pmcli.git')
md5sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${pkgname%-git}"
install -D -m644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE.md"
cd "src"
for file in *.lua; do
install -D -m644 "$file" "${pkgdir}/usr/share/lua/5.3/pmcli/$file"
done
sed -i 's/^/#!\/bin\/env lua\n/' pmcli.sh
install -D -m655 pmcli.sh "${pkgdir}/usr/local/bin/pmcli"
}
|