25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

build_arm.sh 792 B

1 yıl önce
1 yıl önce
123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # This script only works on Debian Bullseye
  3. # If you have docker this is trivially easy:
  4. # docker run -v $(pwd):/aptdec:z -w /aptdec debian:11 ./build_arm.sh
  5. apt-get update
  6. apt-get install -y debootstrap cmake gcc-arm-linux-gnueabihf git
  7. # Prepare armhf root environment
  8. if [ ! -d root ]; then
  9. debootstrap --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --arch=armhf --include=libsndfile1-dev,libpng-dev --download-only bullseye root http://deb.debian.org/debian/
  10. for i in root/var/cache/apt/archives/*.deb; do dpkg -x "$i" root; done
  11. fi
  12. # Build aptdec
  13. cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-armhf.cmake -DCMAKE_INSTALL_PREFIX=/aptdec/root
  14. cmake --build build -j$(nproc)
  15. cmake --build build --target package