Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debian/bookworm/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
Homepage: https://github.com/everoddandeven/monero-python
Rules-Requires-Root: no
Package: python3-monero
Architecture: any
Architecture: all
Description: Python bindings for monero-cpp
This package provides Python 3 bindings for the monero-cpp library using pybind11.
Version: 0.0.1
2 changes: 1 addition & 1 deletion debian/jammy/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
Homepage: https://github.com/everoddandeven/monero-python
Rules-Requires-Root: no
Package: python3-monero
Architecture: any
Architecture: all
Description: Python bindings for monero-cpp
This package provides Python 3 bindings for the monero-cpp library using pybind11.
Version: 0.0.1
2 changes: 1 addition & 1 deletion debian/noble/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
Homepage: https://github.com/everoddandeven/monero-python
Rules-Requires-Root: no
Package: python3-monero
Architecture: any
Architecture: all
Description: Python bindings for monero-cpp
This package provides Python 3 bindings for the monero-cpp library using pybind11.
Version: 0.0.1
2 changes: 1 addition & 1 deletion debian/trixie/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Standards-Version: 4.5.0
Homepage: https://github.com/everoddandeven/monero-python
Rules-Requires-Root: no
Package: python3-monero
Architecture: any
Architecture: all
Description: Python bindings for monero-cpp
This package provides Python 3 bindings for the monero-cpp library using pybind11.
Version: 0.0.1
19 changes: 15 additions & 4 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ if [ "$ARCH" == "x86_64" ]; then
ARCH="amd64"
elif [[ "$ARCH" == arm64* || "$ARCH" == aarch64* ]]; then
ARCH="arm64"
elif [[ "$ARCH" == armv7* || "$ARCH" == "armhf" ]]; then
ARCH="armhf"
fi

PACKAGE_NAME=${PACKAGE_NAME:-python3-monero_${DEFAULT_VERSION}-1${DISTRO_CODENAME}1_${ARCH}}
Expand Down Expand Up @@ -45,10 +47,10 @@ fi
cd ../../../../

# build libmonero-cpp shared library
mkdir -p build &&
cd build &&
cmake .. &&
cmake --build . &&
mkdir -p build &&
cd build &&
cmake .. &&
cmake --build . &&
make .
cd ../../../

Expand All @@ -59,6 +61,15 @@ rm -rf build/${PACKAGE_NAME}/usr/lib/python3/dist-packages/pybind11*
rm -rf build/${PACKAGE_NAME}/usr/lib/python3/dist-packages/bin
cp -R "debian/${DISTRO_CODENAME}" "build/${PACKAGE_NAME}/DEBIAN"
cp external/monero-cpp/build/libmonero-cpp.so build/${PACKAGE_NAME}/usr/lib/

CONTROL_FILE="build/${PACKAGE_NAME}/DEBIAN/control"
if [ -f "$CONTROL_FILE" ]; then
echo "Patching control file architecture to: ${ARCH}"
sed -i "s/^Architecture: .*/Architecture: ${ARCH}/" "$CONTROL_FILE"
else
echo "WARNING: control file not found at: $CONTROL_FILE"
fi

dpkg-deb --build build/${PACKAGE_NAME}

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