[BredOS-multilib]
Include = /etc/pacman.d/bredos-mirrorlist
First 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:
CC
CXX
should be set to the folowing in thePKGBUILD
:
export CC="armv7h-linux-gnueabihf-gcc"
export CXX="armv7h-linux-gnueabihf-g++"
-
Remove any
cflags
orcxxflags
that are-m32
or-mstackrealign
. -
PKGCONFIG
should be set to the folowing in thePKGBUILD
:
export PKG_CONFIG="armv7h-linux-gnueabihf-pkg-config"
-
You need to add
--includedir=/usr/include32
to the./configure
line in thePKGBUILD
or if it usescmake
you need to add-DCMAKE_INSTALL_INCLUDEDIR=include32
to thecmake
line. -
You need to add
--libdir=/usr/lib32
to the./configure
line in thePKGBUILD
or if it usescmake
you need to add-DCMAKE_INSTALL_LIBDIR=lib32
to thecmake
line. -
If package uses
meson
orarch-meson
you can use--cross-file arm-lib32
to setCC
,CXX
,PKG_CONFIG
,libdir
andincludedir
to the correct values.