summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71365f2dddc74ef69a86a46ac8fd2a62f1e711e0 (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
32
33
34
35
# Maintainer: aksr <aksr at t-com dot me>
pkgname=wordtsar-hg
pkgver=232
pkgrel=1
pkgdesc='A Wordstar 7.0D document mode clone. It loads Wordstar 4, Wordstar 7, and RTF (partial) files, and saves in Wordstar 7 and RTF format.'
arch=('i686' 'x86_64')
url='http://wordtsar.ca/'
license=('AGPL3')
depends=('qt5-base')
makedepends=('mercurial')
conflicts=("${pkgname%-*}")
source=("$pkgname::hg+http://hg.code.sf.net/p/wordtsar/mercurial")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	hg identify -n | sed 's/+//'
}

prepare() {
	cd "$srcdir/$pkgname"
	sed -i 's!\.\./!!g' wordtsar.pro
}

build() {
	cd "$srcdir/$pkgname"
	qmake-qt5 wordtsar.pro
	make
}

package() {
	cd "$srcdir/$pkgname"
	install -D -m755 WordTsar $pkgdir/usr/bin/WordTsar
	install -D -m644 LICENSE.md $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE.md
}