blob: e5d1219d7026d003f6ac76d468a66c79a2ec8ab3 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: John Gerritse <tyrannis dot hawk at gmail dot com>
# Contributor: tdy <tdy@archlinux.info>
pkgname=trelby
pkgver=2.4.9
pkgrel=4
pkgdesc="The free, multiplatform, feature-rich screenwriting program!"
arch=('any')
url="https://github.com/limburgher/trelby"
license=('GPL2')
depends=(
'python'
'python-lxml'
'python-wxpython'
'python-reportlab'
)
makedepends=('python-setuptools')
checkdepends=('python-pytest')
conflicts=(trelby-git)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/limburgher/${pkgname}/archive/refs/tags/${pkgver}.tar.gz"
${pkgname}.xml)
sha256sums=('05b1a97f97779dd8dc383314e74c17e39c2331f47e970323c7176718d4df874e'
'eb9332ff5bd22988ac87231851876df76220a581e1f5bfc5b782cff10ccffe42')
prepare() {
cd ${pkgname}-${pkgver}
gzip -c names.txt > names.txt.gz
gzip -c dict_en.dat > dict_en.dat.gz
}
build() {
cd ${pkgname}-${pkgver}
python setup.py sdist
}
check() {
cd ${pkgname}-${pkgver}
pytest
}
package() {
cd ${pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 "trelby.desktop" "${pkgdir}/usr/share/applications/trelby.desktop"
install -Dm644 "resources/icon256.png" "${pkgdir}/usr/share/trelby/resources/icon256.png"
install -Dm644 "${srcdir}/${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
install -Dm755 "${pkgdir}/opt/trelby/bin/trelby" "${pkgdir}/usr/bin/trelby"
}
|