summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8333fc803005609ddf17a3e837f263680fa9ff04 (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
52
53
# Maintainer:  Dimitris Kiziridis <ragouel at outlook dot com>
# Contributor: Ronuk Raval <ronuk.raval at gmail dot com>
# Contributor: Narrat <autumn-wind at web dot de>
# Contributor: David Scholl <djscholl at gmail dot com>

pkgname=leo
pkgver=6.3
pkgrel=1
pkgdesc="Outliner, Editor, and Personal Information Manager written in 100% Python"
arch=('any')
url="http://leoeditor.com"
license=('MIT' 'BSD')
provides=('leo-editor')
depends=('desktop-file-utils'
         'shared-mime-info'
         'python-pyqt5'
         'python-pyqtwebengine'
         'python-docutils'
         'python-flexx'
         'python-meta'
         'jupyter-nbformat'
         'python-pylint'
         'python-pyflakes'
         'python-pyshortcuts'
         'python-sphinx'
         'python-black'
         'python-asttokens')
makedepends=('python-setuptools' 'gendesk')
optdepends=('python-pyenchant: spellchecking support')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/leo-editor/leo-editor/archive/v${pkgver}.tar.gz"
        'leo.xml')
sha256sums=('6a39af710fa53caaf0cda947a0dcb37ba0f6aed9ffe2018954b2e81b3d57725f'
            '630852279324b0d9acf656c4684f16777d64f49b4062bd101c5cddbfc33c82cb')

build() {
    cd "${pkgname}-editor-${pkgver}"
    python setup.py build
    gendesk -f -n --pkgname "$pkgname" \
            --pkgdesc "$pkgdesc" \
            --mimetypes=application/x-leo-outline \
            --exec="$pkgname" \
            --categories=TextEditor\;Development \
            --icon "$pkgname"
}

package() {
    cd "${pkgname}-editor-${pkgver}"
    python setup.py install --skip-build --root="$pkgdir/" --optimize=1
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 leo.desktop "${pkgdir}/usr/share/applications/leo.desktop"
    install -Dm644 "$srcdir/leo.xml" "${pkgdir}/usr/share/mime/packages/leo.xml"
    install -Dm644 "leo/Icons/application-x-leo-outline.png" "${pkgdir}/usr/share/pixmaps/leo.png"
}