summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f60660c06d58d3b4c6e9680653e5d25123a3f06f (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: Joop Kiefte <joop@kiefte.net>
pkgname=ruby-textplay-git
pkgver=r87.88f7871
pkgrel=1
pkgdesc="Convert fountain screenplays to Final Draft and HTML format, and convert HTML to PDF."
arch=('any')
url="https://www.olivertaylor.net/"
license=('custom:textplay')
depends=('ruby')
makedepends=('git') 
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=
source=('ruby-textplay::git+https://github.com/olivertaylor/Textplay')
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd "$srcdir/${pkgname%-git}"

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
	install -Dm755 textplay "$pkgdir/usr/bin/textplay"
}