summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d100d130a1960acc50a3b86f635c75f0eb91ca3a (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
# Maintainer: Pi-Yueh Chuang <pychuang@pm.me>
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>
pkgname=python-imaplib2
pkgver=3.6
pkgrel=2
pkgdesc="Threaded Python IMAP4 client"
arch=('any')
url="https://github.com/jazzband/imaplib2"
license=('MIT')
depends=('python')
makedepends=('git' 'python-setuptools')
provides=("${pkgname}")
conflicts=("${pkgname}-git")
source=("${pkgname}::git+https://github.com/jazzband/imaplib2.git#tag=v3.6")
md5sums=('SKIP')

build() {
    cd "${pkgname}"
    python setup.py build
}

package() {
    cd "${pkgname}"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build

    # install README
    install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/$pkgname"

    # install license
    install -Dm644 "LICENCE" -t "$pkgdir/usr/share/licenses/$pkgname"
}