[BredOS-multilib]
Include = /etc/pacman.d/bredos-mirrorlistFirst set PKGDEST= in makepkg.conf to the directory where you want the packages to be stored.
Then run:
./buildpkg.sh <package>Remember to run pre-commit install after cloning.
If you want to add a package that exists in archlinux's multilib repo, you need to pull the PKGBUILD using './pullpkg.sh '. Then modify it so it compiles for ARM32 heres some tips when doing that:
CCCXXshould be set to the folowing in thePKGBUILD:
export CC="armv7h-linux-gnueabihf-gcc"
export CXX="armv7h-linux-gnueabihf-g++"-
Remove any
cflagsorcxxflagsthat are-m32or-mstackrealign. -
PKGCONFIGshould be set to the folowing in thePKGBUILD:
export PKG_CONFIG="armv7h-linux-gnueabihf-pkg-config"-
You need to add
--includedir=/usr/include32to the./configureline in thePKGBUILDor if it usescmakeyou need to add-DCMAKE_INSTALL_INCLUDEDIR=include32to thecmakeline. -
You need to add
--libdir=/usr/lib32to the./configureline in thePKGBUILDor if it usescmakeyou need to add-DCMAKE_INSTALL_LIBDIR=lib32to thecmakeline. -
If package uses
mesonorarch-mesonyou can use--cross-file arm-lib32to setCC,CXX,PKG_CONFIG,libdirandincludedirto the correct values.