File tree Expand file tree Collapse file tree 5 files changed +19
-8
lines changed
Expand file tree Collapse file tree 5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88Homepage: https://github.com/everoddandeven/monero-python
99Rules-Requires-Root: no
1010Package: python3-monero
11- Architecture: any
11+ Architecture: all
1212Description: Python bindings for monero-cpp
1313 This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414Version: 0.0.1
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88Homepage: https://github.com/everoddandeven/monero-python
99Rules-Requires-Root: no
1010Package: python3-monero
11- Architecture: any
11+ Architecture: all
1212Description: Python bindings for monero-cpp
1313 This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414Version: 0.0.1
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88Homepage: https://github.com/everoddandeven/monero-python
99Rules-Requires-Root: no
1010Package: python3-monero
11- Architecture: any
11+ Architecture: all
1212Description: Python bindings for monero-cpp
1313 This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414Version: 0.0.1
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88Homepage: https://github.com/everoddandeven/monero-python
99Rules-Requires-Root: no
1010Package: python3-monero
11- Architecture: any
11+ Architecture: all
1212Description: Python bindings for monero-cpp
1313 This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414Version: 0.0.1
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ if [ "$ARCH" == "x86_64" ]; then
1313 ARCH=" amd64"
1414elif [[ " $ARCH " == arm64* || " $ARCH " == aarch64* ]]; then
1515 ARCH=" arm64"
16+ elif [[ " $ARCH " == armv7* || " $ARCH " == " armhf" ]]; then
17+ ARCH=" armhf"
1618fi
1719
1820PACKAGE_NAME=${PACKAGE_NAME:- python3-monero_${DEFAULT_VERSION} -1${DISTRO_CODENAME} 1_${ARCH} }
4547cd ../../../../
4648
4749# build libmonero-cpp shared library
48- mkdir -p build &&
49- cd build &&
50- cmake .. &&
51- cmake --build . &&
50+ mkdir -p build &&
51+ cd build &&
52+ cmake .. &&
53+ cmake --build . &&
5254make .
5355cd ../../../
5456
@@ -59,6 +61,15 @@ rm -rf build/${PACKAGE_NAME}/usr/lib/python3/dist-packages/pybind11*
5961rm -rf build/${PACKAGE_NAME} /usr/lib/python3/dist-packages/bin
6062cp -R " debian/${DISTRO_CODENAME} " " build/${PACKAGE_NAME} /DEBIAN"
6163cp external/monero-cpp/build/libmonero-cpp.so build/${PACKAGE_NAME} /usr/lib/
64+
65+ CONTROL_FILE=" build/${PACKAGE_NAME} /DEBIAN/control"
66+ if [ -f " $CONTROL_FILE " ]; then
67+ echo " Patching control file architecture to: ${ARCH} "
68+ sed -i " s/^Architecture: .*/Architecture: ${ARCH} /" " $CONTROL_FILE "
69+ else
70+ echo " WARNING: control file not found at: $CONTROL_FILE "
71+ fi
72+
6273dpkg-deb --build build/${PACKAGE_NAME}
6374
6475echo " Package built successfully: build/${PACKAGE_NAME} .deb"
You can’t perform that action at this time.
0 commit comments