summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cc42b741a1c76a0f277dc45b12297403eceeada (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Maintainer: Pellegrino Prevete <cGVsbGVncmlub3ByZXZldGVAZ21haWwuY29tCg== | base -d>
# Maintainer: Truocolo <truocolo@aol.com>

_git=false
_py="python"
_pkg="pgpgram"
_Pkg="PGPgram"
pkgbase="${_pkg}"
_pkgname="${_py}-${_pkg}"
pkgname=(
  "${pkgbase}"
)
pkgver=0.4
pkgrel=1
pkgdesc='PGP encrypted backups on Telegram Cloud'
arch=(
  'any')
_http="https://github.com"
_ns="tallero"
url="${_http}/${_ns}/${_pkg}"
license=(
  'AGPL3')
depends=(
  "${_py}"
  "${_py}-appdirs"
  "${_py}-setproctitle"
  "${_py}-sqlitedict"
  'telegram-tdlib'
  'trovotutto'
)
optdepends=(
  'youtube-dl'
)
makedepends=(
  "${_py}-setuptools"
)
[[ "${_git}" == true ]] && \
  makedepends+=(
    'git'
  )
provides=(
  "${_pkgname}=${pkgver}"
)
source=()
sha256sums=()
[[ "${_git}" == true ]] && \
  source+=(
    "${_pkg}-${pkgver}::git+${url}.git#tag=${pkgver}"
  ) && \
  sha256sums+=(
    'SKIP'
  )
[[ "${_git}" == false ]] && \
  source+=(
    "${_pkg}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
  ) && \
  sha256sums+=(
    "da046d7c56c3af0ff1d9e38c9ba9fff77b066fe46412c6d985b1196c7b15685f"
  )

package() {
  cd \
    "${_Pkg}-${pkgver}"
  "${_py}" \
    setup.py \
      install \
      --root="${pkgdir}" \
      --optimize=1
}

# vim: ts=2 sw=2 et: