summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01c650d8772557d3eabd1632f52413fa7129f09d (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
# Maintainer: Matt Robinson <aur@nerdoftheherd.com>
# Contributor: Jaan Toots <jaan@jaantoots.org>
pkgname=goobook
pkgver=3.5.2
pkgrel=4
pkgdesc="Access your Google contacts from the command line"
arch=('any')
url="https://gitlab.com/goobook/goobook"
license=('GPL3')
depends=('python-google-api-python-client'
         'python-oauth2client'
         'python-pyparsing'
         'python-pyxdg'
         'python-setuptools'
         'python-simplejson')
makedepends=('python-build'
             'python-docutils'
             'python-installer'
             'python-poetry')
source=("${url}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('a2182068ec1fbb0d37869e224c99ea70971f78525596a7af7a3e4803e0614c91')

build() {
    cd "$pkgname-$pkgver"
    rst2man --strict goobook.1.rst goobook.1
    python -m build --wheel --no-isolation
}

package() {
    cd "$pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 -t "$pkgdir/usr/share/man/man1" "$pkgname.1"
    install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" "README.rst" "CHANGES.rst"
}