attic: unbreak and fix cross build

Only the development version of attic requires cython to build.
This commit is contained in:
Alessio Sergi 2014-11-07 17:17:45 +01:00
parent 9412829c9b
commit 3f57e47623

View File

@ -1,17 +1,23 @@
# Template file for 'attic'
pkgname=attic
version=0.13
revision=2
wrksrc=Attic-$version
revision=3
wrksrc="Attic-$version"
build_style=python-module
hostmakedepends="python3.4-setuptools Cython"
makedepends="python3.4-devel libressl-devel acl-devel"
hostmakedepends="python3.4-setuptools python3.4-devel libressl-devel"
makedepends="${hostmakedepends/python3.4-setuptools/} acl-devel"
depends="python3.4-msgpack"
python_versions="3.4"
pycompile_module="attic"
depends="python3.4 python3.4-msgpack"
short_desc="A deduplicating backup program for efficient and secure backups"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
homepage="https://attic-backup.org/"
license="BSD"
distfiles="${PYPI_SITE}/A/Attic/Attic-$version.tar.gz"
checksum=fe34a48998d876686987dc926f6cf78e337bff8ea1c120ecf240ff4fe970673f
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i "s|\(possible_openssl_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
fi
}