blob: 1f44c51684e69f17034faf47ed044a892fee641a (
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=6.7.0
pkgrel=0
pkgdesc="Synchronizes emails between two repositories"
url="http://www.offlineimap.org"
arch="noarch"
license="GPL2+"
depends="python"
depends_dev=""
makedepends="python-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"
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
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="91b92e3ee0e89290c90731e551c894aa offlineimap-6.7.0.tar.gz"
sha256sums="c446fb31bdca90c7db4146b918ad3fa05f6df5362a4cc961df6a7727a8aac210 offlineimap-6.7.0.tar.gz"
sha512sums="aa8149d140a9fc44a755c7dd202a6adcc291351d3b87999139816874266a83c1b7492471cae1bede7ac5a907c3b9dfb8b4dc78871ec796172257a69f9e11520e offlineimap-6.7.0.tar.gz"
|