aboutsummaryrefslogblamecommitdiffstats
path: root/main/offlineimap/APKBUILD
blob: 06c5a57a8ffd6299ad6f48147186834fbd2f63e5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              
                                               
                                              
                   
            
        
                                                      
                                
             
               
                        

                                 

                          
                                                                                                     
 
                                   
         
                      
                                         
 
                           
                            


           
                      












                                                                                    

 


                                                                                                                                                                       
# 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.8
pkgrel=0
pkgdesc="Synchronizes emails between two repositories"
url="http://www.offlineimap.org"
arch="noarch"
license="GPL2+"
depends="python py2-six"
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="50bbf1aadfdcd8beab9b9f11f1e5c5bb  offlineimap-7.0.8.tar.gz"
sha256sums="19da773c1486d3d06ebe04e499f48e57d4224149582672a74876b1f15481bd6a  offlineimap-7.0.8.tar.gz"
sha512sums="6f0dcdaad46e59ba097f9dc4346f8f8ec604d1c4d05e43c15f4dc911eda1425453e8a481fbe92fd87b507da1f7c7b6c9b4f16dc42bb75c0ba6353538efce5514  offlineimap-7.0.8.tar.gz"