summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd0ac74a8c0ae790fdb3d89adcacab30ff3db47c (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
# Maintainer: Stefan Tatschner <rumpelsepp@sevenbyte.org>

pkgname='pynote'
pkgver=2.0.0
pkgrel=2
pkgdesc="Manage notes on the commandline"
arch=('any')
url="https://github.com/rumpelsepp/pynote"
license=('MIT')
provides=('pynote')
depends=('python' 'python-tabulate' 'python-arrow')
makedepends=('asciidoctor')
conflicts=('pynote-docs' 'pynote-git' 'pynote-docs-git')
source=("git+https://github.com/rumpelsepp/pynote#tag=v$pkgver")
sha256sums=('SKIP')
install=pynote.install

build() {
    cd "${srcdir}/${pkgname}/man"
    make man
}

package() {
    cd "${srcdir}/${pkgname}"

    install -D "man/note.1"   "${pkgdir}/usr/share/man/man1/note.1"
    install -D "man/noterc.5" "${pkgdir}/usr/share/man/man5/noterc.5"

    python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}