blob: 2787ae745643e44929defbfc293b9d386fb7ea66 (
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
|
pkgbase='novelwriter'
pkgname=('novelwriter')
_module='novelWriter'
pkgver='2.5.3'
pkgrel=1
pkgdesc="A markdown-like document editor for writing novels"
url="https://novelwriter.io"
depends=('python' 'python-pyenchant' 'python-lxml' 'python-pyqt5' 'python-pyqt5-webengine' 'qt5-svg' 'nuspell')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
license=('GPL')
arch=('any')
source=("https://github.com/vkbo/$_module/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('bf8ea7f56360edf92cb61e23c2f28e5828faf8699fec2a27d100c276e38d019d')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
depends+=()
cd "${srcdir}/${_module}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/$_module-$pkgver-py3-none-any.whl
install -D setup/data/novelwriter.desktop -t "${pkgdir}"/usr/share/applications
install -D setup/data/novelwriter.png -t "${pkgdir}"/usr/share/pixmaps
install -D setup/data/x-novelwriter-project.xml -t "${pkgdir}"/usr/share/mime/packages
mkdir -p "${pkgdir}"/usr/share/icons/"${pkgname}" && cp -r setup/data/hicolor/* "${pkgdir}"/usr/share/icons/"${pkgname}"
}
|