summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e692ba7825d45fdb2a877eacf0c6173686819736 (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: atomicfs <https://aur.archlinux.org/account/atomicfs>

pkgname=python-imap-tools
pkgver=1.7.3
pkgrel=3
pkgdesc="Work with email and mailbox by IMAP"
arch=('any')
url="https://github.com/ikvk/imap_tools"
license=('Apache-2.0')
depends=(
  'python'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
source=("${pkgname}::git+${url}#tag=v${pkgver}")
sha256sums=('fe0d2ab6548ba9bbde1f64f6192f65d0911e90fc70295bf00417972b5eac6b4b')

#check() {}
# WOuld require some setup

build() {
  cd "${srcdir}/${pkgname}"
  python -m build --wheel --no-isolation
}

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