summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e71721263c05ada776f170191675c0944d0a9b3a (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: teraflops <cprieto.ortiz@gmail.com>
pkgname=magmatv-git
_gitname=magmatv
pkgver=0.1.6.r5.gd73dae3
pkgrel=1
pkgdesc="Command line tool for manage and play series and films from any compliant torrent rss feed"
arch=('any')
url="https://gitlab.com/MagmaTV/magmatv"
license=('GPL3')
depends=('btfs' 'mpv' 'sqlite' 'libxml2' 'sed' 'curl')
makedepends=('git')
optdepends=('subliminal: subtitles support' 'libnotify')
provides=('magmatv-git')
conflicts=('magmatv')
source=('magmatv::git+https://gitlab.com/MagmaTV/magmatv.git#branch=dev')
sha256sums=('SKIP')

pkgver() {
 cd "$srcdir/$_gitname"
 git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

package() {
 cd "${srcdir}/${_gitname}"
 install -Dm755 magmatv "${pkgdir}/usr/bin/${_gitname}"
 install -Dm644 magmatv.bash_completion "${pkgdir}/etc/bash_completion.d/${_gitname}" 
}

# vim:set ts=2 sw=2 et: