Skip to content

Commit 4c6739f

Browse files
Fix debian control
1 parent 5e184c3 commit 4c6739f

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

debian/bookworm/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88
Homepage: https://github.com/everoddandeven/monero-python
99
Rules-Requires-Root: no
1010
Package: python3-monero
11-
Architecture: any
11+
Architecture: all
1212
Description: Python bindings for monero-cpp
1313
This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414
Version: 0.0.1

debian/jammy/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88
Homepage: https://github.com/everoddandeven/monero-python
99
Rules-Requires-Root: no
1010
Package: python3-monero
11-
Architecture: any
11+
Architecture: all
1212
Description: Python bindings for monero-cpp
1313
This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414
Version: 0.0.1

debian/noble/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88
Homepage: https://github.com/everoddandeven/monero-python
99
Rules-Requires-Root: no
1010
Package: python3-monero
11-
Architecture: any
11+
Architecture: all
1212
Description: Python bindings for monero-cpp
1313
This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414
Version: 0.0.1

debian/trixie/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Standards-Version: 4.5.0
88
Homepage: https://github.com/everoddandeven/monero-python
99
Rules-Requires-Root: no
1010
Package: python3-monero
11-
Architecture: any
11+
Architecture: all
1212
Description: Python bindings for monero-cpp
1313
This package provides Python 3 bindings for the monero-cpp library using pybind11.
1414
Version: 0.0.1

docker/build.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if [ "$ARCH" == "x86_64" ]; then
1313
ARCH="amd64"
1414
elif [[ "$ARCH" == arm64* || "$ARCH" == aarch64* ]]; then
1515
ARCH="arm64"
16+
elif [[ "$ARCH" == armv7* || "$ARCH" == "armhf" ]]; then
17+
ARCH="armhf"
1618
fi
1719

1820
PACKAGE_NAME=${PACKAGE_NAME:-python3-monero_${DEFAULT_VERSION}-1${DISTRO_CODENAME}1_${ARCH}}
@@ -45,10 +47,10 @@ fi
4547
cd ../../../../
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 . &&
5254
make .
5355
cd ../../../
5456

@@ -59,6 +61,15 @@ rm -rf build/${PACKAGE_NAME}/usr/lib/python3/dist-packages/pybind11*
5961
rm -rf build/${PACKAGE_NAME}/usr/lib/python3/dist-packages/bin
6062
cp -R "debian/${DISTRO_CODENAME}" "build/${PACKAGE_NAME}/DEBIAN"
6163
cp 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+
6273
dpkg-deb --build build/${PACKAGE_NAME}
6374

6475
echo "Package built successfully: build/${PACKAGE_NAME}.deb"

0 commit comments

Comments
 (0)