|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# REPLACE ALL THE "Tribler" OF THIS FILE WITH THE MODULE NAME |
| 4 | +# THEN REMOVE THIS ERROR AND EXIT |
| 5 | + |
| 6 | +# version of your package |
| 7 | +VERSION_Tribler=${VERSION_Tribler:-0.1.0} |
| 8 | + |
| 9 | +# dependencies of this recipe |
| 10 | +DEPS_Tribler=(kivy openssl pycrypto m2crypto sqlite3 pyasn1 netifaces apsw swift) |
| 11 | + |
| 12 | +# url of the package |
| 13 | +URL_Tribler=http://fr.dosoftware.nl/tsap/Tribler-${VERSION_Tribler}.tar.gz |
| 14 | + |
| 15 | +# md5 of the package |
| 16 | +MD5_Tribler=841f0bacb68ed0f5c5a78606f52f883e |
| 17 | + |
| 18 | +# default build path |
| 19 | +BUILD_Tribler=$BUILD_PATH/Tribler/$(get_directory $URL_Tribler) |
| 20 | + |
| 21 | +# set the correct source and destination for the curves.ec file (this is not automatically done so we have to do it) |
| 22 | +#CURVES_source=$BUILD_Tribler/Tribler/crypto/curves.ec |
| 23 | +#CURVES_dest=$BUILD_PATH/python-install/lib/python2.7/site-packages/Tribler/crypto/curves.ec |
| 24 | + |
| 25 | + |
| 26 | +# default recipe path |
| 27 | +RECIPE_Tribler=$RECIPES_PATH/Tribler |
| 28 | + |
| 29 | +# function called for preparing source code if needed |
| 30 | +# (you can apply patch etc here.) |
| 31 | +function prebuild_Tribler() { |
| 32 | + echo "_lsprof.so" >> "${BUILD_PATH}/whitelist.txt" |
| 33 | + echo "_csv.so" >> "${BUILD_PATH}/whitelist.txt" |
| 34 | +} |
| 35 | + |
| 36 | +# function called to build the source code |
| 37 | +function build_Tribler() { |
| 38 | + cd $BUILD_Tribler |
| 39 | + push_arm |
| 40 | + try $HOSTPYTHON setup.py install |
| 41 | + pop_arm |
| 42 | +} |
| 43 | + |
| 44 | +# function called after all the compile have been done |
| 45 | +function postbuild_Tribler() { |
| 46 | + |
| 47 | + # curves.ec probably gets ignored by setup.py install, |
| 48 | + # copy it manually to site-packages of the built python |
| 49 | + #try cp $CURVES_source $CURVES_dest |
| 50 | + true |
| 51 | +} |
0 commit comments