aboutsummaryrefslogtreecommitdiffstats
path: root/main/offlineimap/APKBUILD
blob: 5547c5ac84ccb2800a83a0964ae426c911640f13 (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
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=offlineimap
pkgver=6.5.7
pkgrel=1
pkgdesc="Synchronizes emails between two repositories"
url="http://offlineimap.org/"
arch="noarch"
license="GPL2+"
depends="python"
depends_dev="python-dev"
makedepends="$depends_dev asciidoc"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OfflineIMAP/${pkgname}/archive/v${pkgver}.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1

	cd "$_builddir"/docs
	make man || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --root="${pkgdir}" --optimize=1 || return 1
	install -Dm644 docs/offlineimap.1 "${pkgdir}"/usr/share/man/man1/offlineimap.1 || return 1
	install -Dm644 docs/offlineimapui.7 "${pkgdir}"/usr/share/man/man7/offlineimapui.7 || return 1
	install -Dm644 offlineimap.conf "${pkgdir}"/usr/share/offlineimap/offlineimap.conf || return 1
	install -Dm644 offlineimap.conf.minimal "${pkgdir}"/usr/share/offlineimap/offlineimap.conf.minimal || return 1
}

md5sums="b6c933bd89d037fca9037d2f6bd18a37  offlineimap-6.5.7.tar.gz"
sha256sums="b7de52c7d8995e0657bb55da13531c8d6f96d828217159477c685ae408e390a3  offlineimap-6.5.7.tar.gz"
sha512sums="eb2d7c627b1a5563cb685549eeaaef2cd164e69ab5c541ee64b2d081dfe5493cd51de449e6283447e8132503545f7f37cb6bf7e6764b626f243e502cf77bda4f  offlineimap-6.5.7.tar.gz"