mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
# 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"
|