summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2dac873aca5f9163dc78ac5729858a543bc2ae44 (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
# Maintainer: Georgiy Tugai <georgiy.tugai@gmail.com>
# Maintainer: ssfdust <ssfdust@gmail.com>
pkgname=lieer-git
pkgver=v1.6.20231203.e41c966
pkgrel=1
pkgdesc="Fast fetch and two-way tag synchronization between notmuch and GMail"
arch=(any)
url="https://github.com/gauteh/lieer"
license=('GPL3')
groups=()
depends=('python' 'python-tqdm' 'python-google-api-python-client'
         'python-oauth2client' 'python-google-auth-oauthlib' 'notmuch>=0.25')
makedepends=('git' 'python-pip' 'python-installer' 'python-wheel')
optdepends=()
provides=("${pkgname%-git}" "gmai${pkgname%-git}" "gmai${pkgname}")
conflicts=("${pkgname%-git}" "gmai${pkgname%-git}" "gmai${pkgname}")
replaces=()
backup=()
options=(!emptydirs)
install=
changelog=
source=("$pkgname::git+https://github.com/gauteh/lieer.git")
md5sums=('SKIP')
noextract=()

pkgver() {
    (
        set -o pipefail
        cd "$srcdir/$pkgname"

        printf "v%s.%s.%s" \
            "$(grep -oP 'version="\K[^"]+' setup.py)" \
            "$(TZ=UTC git log -1 --pretty='%cd' --date=format-local:%Y%m%d)" \
            "$(git rev-parse --short HEAD)"
    )
}

build () {
    cd "$srcdir/$pkgname"
    pip wheel --no-deps -w "dists" .
}

package() {
    cd "$srcdir/$pkgname"
    python -m installer --destdir="$pkgdir/" dists/*.whl
}

# vim:set ts=4 sw=4 et: