python-crypto: fix cross build and gcc6 build
This commit is contained in:
parent
62b66fb9e6
commit
0392c8d161
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-crypto'
|
||||
pkgname=python-crypto
|
||||
version=2.6.1
|
||||
revision=5
|
||||
revision=6
|
||||
wrksrc="pycrypto-${version}"
|
||||
replaces="pycrypto>=0"
|
||||
build_style=python-module
|
||||
|
@ -20,8 +20,10 @@ checksum=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
|
|||
pre_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
sed -e "s|'/usr/include/'|''|g" -i setup.py
|
||||
CC= CFLAGS= ./configure ${configure_args} --host=${XBPS_CROSS_TRIPLET}
|
||||
else
|
||||
CC="$CC" CFLAGS="$CFLAGS" ./configure ${configure_args}
|
||||
fi
|
||||
CC= CFLAGS= ./configure ${configure_args}
|
||||
}
|
||||
|
||||
python3.4-crypto_package() {
|
||||
|
|
Loading…
Reference in a new issue