aboutsummaryrefslogtreecommitdiffstats
path: root/community/offlineimap/APKBUILD
blob: 4908c5da08f086f42b0aad0d817f0aee14fcfacb (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=offlineimap
pkgver=7.2.0
pkgrel=0
pkgdesc="Synchronizes emails between two repositories"
url="http://www.offlineimap.org"
arch="noarch"
license="GPL-2.0-or-later"
depends="python2 py2-six"
makedepends="python2-dev asciidoc"
install=""
options="!check" # test suite requires credentials for an IMAP and Gmail account
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OfflineIMAP/${pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build

	cd "$builddir"/docs
	make man
}

package() {
	cd "$builddir"
	python2 setup.py install --root="${pkgdir}" \
		--optimize=1

	for man in docs/*.?; do
		install -Dm644 "$man" \
			"$pkgdir"/usr/share/man/man${man##*.}/${man##*/}
	done

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/
	install -m644 README.md TODO.rst MAINTAINERS.rst Changelog.md \
		"$pkgdir"/usr/share/doc/$pkgname/
	install -m644 offlineimap.conf* \
		"$pkgdir"/usr/share/doc/$pkgname/examples/
}

sha512sums="d90024f4449f000b4e91fc1806ee860ce0ca9417286328c6f388c812e0baf7afb7794eb91a4afa5d9061864098117d87706ae8d2cc7cb231ed25effa42486469  offlineimap-7.2.0.tar.gz"