Define "TARGET" variable to avoid hardcoding "i386-unknown-linux-musl" everywhere

This commit is contained in:
Eduardo Sánchez Muñoz 2025-07-18 14:28:30 +02:00
parent a7397d5caa
commit 502e8f944c
37 changed files with 81 additions and 79 deletions

View file

@ -24,7 +24,7 @@ src_configure() {
--bindir="${PREFIX}/bin" \
--sbindir="${PREFIX}/bin" \
--libdir="${LIBDIR}" \
--build=i386-unknown-linux-gnu \
--build="${TARGET/-musl/-gnu}" \
--disable-cramfs \
--without-ncurses \
--enable-static \
@ -38,6 +38,6 @@ src_install() {
default
# A weird behaviour I can't find the source of
mv "${DESTDIR}${PREFIX}/i386-unknown-linux-musl/"* "${DESTDIR}${LIBDIR}/"
rmdir "${DESTDIR}${PREFIX}/i386-unknown-linux-musl/"
mv "${DESTDIR}${PREFIX}/${TARGET}/"* "${DESTDIR}${LIBDIR}/"
rmdir "${DESTDIR}${PREFIX}/${TARGET}/"
}