summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ee5509d35b99282d04ef35d8cd9c8ab5c63abf4 (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
# Maintainer: Olivier Marty <olivier.marty.m@gmail.com>

pkgname=subtitles-printer-git
pkgver=v1.1.r0.ga4d6108
pkgrel=1
pkgdesc='Shows subtitles in the bottom of an X11 display. Useful with Netflix.'
url='https://github.com/OlivierMarty/SubtitlesPrinter.git'
arch=('any')
license=('GPL2')
depends=('libx11')
makedepends=('git')
source=("$pkgname"::'git+https://github.com/OlivierMarty/SubtitlesPrinter.git')
sha1sums=('SKIP')

provides=("subtitlesPrinter")
conflicts=("subtitlesPrinter")

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

build() {
	cd "${srcdir}/$pkgname"
	make
}

package() {
	cd "${srcdir}/$pkgname"
	install -Dm755 subtitlesPrinter "${pkgdir}/usr/bin/subtitlesPrinter"
}