blob: dbc738b521c9bff5768d3825d68e0c851d389a94 (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=offlineimap
pkgver=7.0.9
pkgrel=0
pkgdesc="Synchronizes emails between two repositories"
url="http://www.offlineimap.org"
arch="noarch"
license="GPL2+"
depends="python2 py2-six"
depends_dev=""
makedepends="python2-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
build() {
cd "$builddir"
python2 setup.py build || return 1
cd "$builddir"/docs
make man || return 1
}
package() {
cd "$builddir"
python2 setup.py install --root="${pkgdir}" \
--optimize=1 || return 1
for man in docs/*.?; do
install -Dm644 "$man" \
"$pkgdir"/usr/share/man/man${man##*.}/${man##*/} || return 1
done
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/
install -m644 README.md TODO.rst MAINTAINERS.rst Changelog.md \
"$pkgdir"/usr/share/doc/$pkgname/ || return 1
install -m644 offlineimap.conf* \
"$pkgdir"/usr/share/doc/$pkgname/examples/ || return 1
}
md5sums="d746f2ac6892f1385bc1f0c730f1f451 offlineimap-7.0.9.tar.gz"
sha256sums="aec349b97fe41681ebad48d03cac62dc84e405ad136ac92067ecfcd640bf6a12 offlineimap-7.0.9.tar.gz"
sha512sums="5b0f505aaf97597fda6e0151df90c986043a6b0b6aad4e38a7a74463596d754cd6095c1c015a140a68c425f207599d8261a6745d92080a959cea8611462ad801 offlineimap-7.0.9.tar.gz"
|