2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 14:50:07 -07:00

*: explicit DESTDIR

This commit is contained in:
phoebos 2023-03-02 14:40:00 +00:00 committed by Owen Rafferty
parent 58b552f92d
commit 7028d50226
No known key found for this signature in database
109 changed files with 172 additions and 88 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
make LDFLAGS="$LDFLAGS -static"
make PREFIX=/usr install
make PREFIX=/usr DESTDIR="$1" install

View File

@ -29,6 +29,6 @@ export PATH="$PATH:$PWD"
make configure-host
make tooldir=/usr
make tooldir=/usr install
make tooldir=/usr DESTDIR="$1" install
ln -sf ld.bfd "$1/usr/bin/ld"

View File

@ -7,7 +7,7 @@
make
make \
make DESTDIR="$1" \
install-libLIBRARIES \
install-binPROGRAMS \
install-nodist_binSCRIPTS \

View File

@ -25,4 +25,4 @@ mv -f _ src/Makefile.in
--without-zstd
make
make install
make DESTDIR="$1" install

View File

@ -6,7 +6,7 @@
ac_cv_func_realloc_0_nonnull=yes
make
make install
make DESTDIR="$1" install
ln -s flex "$1/usr/bin/lex"

View File

@ -50,7 +50,7 @@ esac
"${bootstrap:---enable-bootstrap}"
make
make install
make DESTDIR="$1" install
# Save 35MB.
find "$1" -name libgtkpeer.a -exec rm -f {} +

View File

@ -24,6 +24,6 @@ EOF
ac_cv_fread_reads_directories=yes
make LIBS="$(curl-config --static-libs) libgit.a reftable/libreftable.a xdiff/lib.a -lz"
make install
make DESTDIR="$1" install
cp -Rf man "$1/usr/share/man"

View File

@ -18,6 +18,8 @@ done
export CFLAGS
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=[^ ]*//g')
pkg_dir=$1
# Force bfd linker to fix issues with alternative linkers. Mold does not yet
# have full linker script support and I'm not certain that lld or gold have
# ever worked to build Grub.
@ -48,7 +50,7 @@ build_grub() (
"$@"
make
make install
make DESTDIR="$pkg_dir" install
)
build_grub --with-platform=pc

View File

@ -6,4 +6,4 @@ export CFLAGS="$CFLAGS -static"
--prefix=/usr
make
make install
make DESTDIR="$1" install

View File

@ -7,4 +7,4 @@ export LDFLAGS="$LDFLAGS -static"
--disable-nls
make
make install
make DESTDIR="$1" install

View File

@ -10,7 +10,7 @@
# --enable-debug
make
make install
make DESTDIR="$1" install
mkdir -p "$1/usr/bin"
ln -s /usr/lib/ld-musl-x86_64.so.1 "$1/usr/bin/ldd"

View File

@ -3,18 +3,16 @@
# Intentional, globbing disabled.
# shellcheck disable=2086
set -- pigz.o yarn.o try.o
for f do
for f in pigz.o yarn.o try.o; do
"$CC" -c -o "$f" "${f%%.o}.c" $CPPFLAGS -DNOZOPFLI $CFLAGS
done
"$CC" -static -o pigz "$@" $CPPFLAGS $CFLAGS -lz $LDFLAGS
mkdir -p \
"$DESTDIR/usr/bin" \
"$DESTDIR/usr/share/man/man1"
"$1/usr/bin" \
"$1/usr/share/man/man1"
cp -f pigz "$DESTDIR/usr/bin"
ln -sf pigz "$DESTDIR/usr/bin/gzip"
cp -f pigz.1 "$DESTDIR/usr/share/man/man1"
ln -sf pigz.1 "$DESTDIR/usr/share/man/man1/gzip.1"
cp -f pigz "$1/usr/bin"
ln -sf pigz "$1/usr/bin/gzip"
cp -f pigz.1 "$1/usr/share/man/man1"
ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1"

View File

@ -6,7 +6,7 @@
--disable-nls
make
make install
make DESTDIR="$1" install
# Link the binaries statically
cd src
@ -17,6 +17,6 @@ make LDFLAGS="$LDFLAGS -all-static" -C lzmainfo
make LDFLAGS="$LDFLAGS -all-static" -C xzdec
for bin in xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec; do
cp "$bin" "$DESTDIR/usr/bin"
chmod 755 "$DESTDIR/usr/bin/${bin##*/}"
cp "$bin" "$1/usr/bin"
chmod 755 "$1/usr/bin/${bin##*/}"
done

View File

@ -6,4 +6,4 @@ export CFLAGS="$CFLAGS -fPIC"
--prefix=/usr
make
make install
make DESTDIR="$1" install

View File

@ -4,4 +4,4 @@
--prefix=/usr
make
make install
make DESTDIR="$1" install

View File

@ -5,4 +5,4 @@
--prefix=/usr
make
make install
make DESTDIR="$1" install

View File

@ -10,4 +10,4 @@
--disable-nls
make
make install
make DESTDIR="$1" install

View File

@ -1,6 +1,6 @@
#!/bin/sh -e
make install
make DESTDIR="$1" install
cp -fr colemak "$1/usr/share/bkeymaps"

View File

@ -23,4 +23,4 @@ sh ./configure \
--disable-gtk-doc-html
make
make install
make DESTDIR="$1" install

View File

@ -1,5 +1,6 @@
#!/bin/sh -e
export DESTDIR="$1"
export LDFLAGS="$LDFLAGS -static"
cmake -B build \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \

View File

@ -1,6 +1,8 @@
#!/bin/sh -e
if command -v cmake >/dev/null; then
export DESTDIR="$1"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
@ -25,7 +27,7 @@ else
-DBUILD_CursesDialog=OFF
make
make install
make DESTDIR="$1" install
fi
rm -rf \

View File

@ -9,7 +9,7 @@
--without-udev
make
make BINMODE=755 install
make DESTDIR="$1" BINMODE=755 install
# Install runit service.
mkdir -p "$1/etc/sv/dhcpcd"

View File

@ -11,4 +11,4 @@ mv -f _ Makefile.in
--enable-compat-symlinks
make
make install
make DESTDIR="$1" install

View File

@ -17,6 +17,7 @@ export LDFLAGS="$LDFLAGS -static"
make
set -- \
DESTDIR="$1" \
MKDIR_P="mkdir -p" \
BLKID_MAN="" \
BLKID_PROG="" \

View File

@ -4,4 +4,4 @@
mv docs/efisecdb.1.mdoc docs/efisecdb.1
make COMPILER="$CC"
make libdir=/usr/lib/ install
make DESTDIR="$1" libdir=/usr/lib/ install

View File

@ -7,7 +7,7 @@
--disable-dbus
make
make install
make DESTDIR="$1" install
cp -f iwd_passphrase "$1/usr/bin"

View File

@ -8,7 +8,7 @@
--without-docbook
make
make install
make DESTDIR="$1" install
# Remove documentation (Changelogs, etc).
rm -rf "${1:?}/usr/share"

View File

@ -32,6 +32,6 @@ patch -p1 < add-av_stream_get_first_dts-for-chromium.patch
--x86asmexe=nasm \
make
make install
make DESTDIR="$1" install
rm -rf "$1/usr/share/ffmpeg/examples"

View File

@ -72,7 +72,7 @@ ac_add_options --disable-system-extension-dirs
EOF
./mach build
./mach install
DESTDIR="$1" ./mach install
# Remove a lot of uneeded "stuff".
rm -rf \

View File

@ -16,4 +16,4 @@ mv -f _ src/Makefile.in
--disable-nls
make
make install
make DESTDIR="$1" install

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
build_freetype() (
cd freetype

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--sysconfdir=/etc \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
: > fuzzing/meson.build
meson \

View File

@ -6,6 +6,6 @@ export CFLAGS="$CFLAGS -Wno-error -static"
--prefix=/usr
make
make install
make DESTDIR="$1" install
cp -f src/grep "$1/usr/bin/ggrep"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
for p in *.patch; do
patch -p1 < "$p"
done

View File

@ -3,4 +3,4 @@
./configure \
--prefix=/usr
make install
make DESTDIR="$1" install

View File

@ -5,4 +5,4 @@
--disable-blacklist
make
make install
make DESTDIR="$1" install

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
. output

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
make
make -j1 PREFIX=/usr install
make -j1 DESTDIR="$1" PREFIX=/usr install

View File

@ -12,4 +12,4 @@ mv -f _ doc/Makefile.in
--disable-gtktest
make
make install
make DESTDIR="$1" install

View File

@ -14,4 +14,4 @@ sh ./configure \
--enable-fontconfig
make
make install
make DESTDIR="$1" install

View File

@ -16,8 +16,8 @@ sh ./configure \
# Skip the default make target and build only what we need.
make -C lib
make -C libelf
make -C libelf install
make -C doc install-man3
make -C libelf DESTDIR="$1" install
make -C doc DESTDIR="$1" install-man3
mkdir -p "$1/usr/lib/pkgconfig"
cp -f config/libelf.pc "$1/usr/lib/pkgconfig/libelf.pc"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson setup \
-Dprefix=/usr \
-Degl=yes \

View File

@ -6,4 +6,4 @@
--with-pic
make
make install
make DESTDIR="$1" install

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
patch -p1 < no-docs.patch
cmake -B build \

View File

@ -4,7 +4,9 @@
--prefix=/usr
make -C src
make -C include install
make -C src install
make -C include DESTDIR="$1" install
make -C src DESTDIR="$1" install
make install-m4dataDATA install-pkgconfigDATA
make DESTDIR="$1" \
install-m4dataDATA \
install-pkgconfigDATA

View File

@ -6,4 +6,4 @@ patch -p1 < apng.patch
--prefix=/usr
make
make install
make DESTDIR="$1" install

View File

@ -4,4 +4,4 @@
--prefix=/usr
make
make install
make DESTDIR="$1" install

View File

@ -7,6 +7,6 @@ patch -p1 < fix-theoraenc.patch
--prefix=/usr
make
make -C lib install
make -C include install
make install-pkgconfigDATA
make -C lib DESTDIR="$1" install
make -C include DESTDIR="$1" install
make DESTDIR="$1" install-pkgconfigDATA

View File

@ -1,7 +1,7 @@
#!/bin/sh -ef
make PREFIX=/usr
make PREFIX=/usr install
make PREFIX=/usr DESTDIR="$1" install
mkdir -p "$1/usr/bin"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--sysconfdir=/etc \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--sysconfdir=/etc \

View File

@ -5,8 +5,10 @@
make
make -C lib install
make -C include install
make -C lib DESTDIR="$1" install
make -C include DESTDIR="$1" install
make install-m4dataDATA install-pkgconfigDATA
make DESTDIR="$1" \
install-m4dataDATA \
install-pkgconfigDATA

View File

@ -25,4 +25,4 @@ sh ./configure \
--as=nasm
make
make install
make DESTDIR="$1" install

View File

@ -9,4 +9,4 @@
--enable-libwebpdecoder
make
make install
make DESTDIR="$1" install

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
mv Modules/* cmake/modules/
cmake -B build \

View File

@ -21,6 +21,6 @@ EOF
sh ./configure
make
make -j1 base-install
make -j1 DESTDIR="$1" base-install
chmod 755 "$1/usr/bin/"*

View File

@ -5,7 +5,7 @@
--enable-static-libc
make
make install
make DESTDIR="$1" install
mkdir -p "$1/etc/sv/mdevd"
cp -f mdevd.conf "$1/etc"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
# rust_std is not (yet?) supported by muon, and we should try
# to avoid a hard rust dependency here if possible.
sed "s/, 'rust_std=2021'//" meson.build > _

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
# Force a static build so shared library breakage does not also break the
# linker (and therefore the ability to recover from the issue).
# XXX: Static linking prevents mold from using dlopen() which is required

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
-Dalsa=enabled \

View File

@ -16,7 +16,7 @@ mv -f _ Makefile.in
--with-ssl
make
make install-exec
make DESTDIR="$1" install-exec
rm -f "$1/etc/mime.types"

View File

@ -4,4 +4,4 @@
--prefix=/usr
make
make install
make DESTDIR="$1" install

View File

@ -14,7 +14,7 @@
--without-cxx-binding
make
make install
make DESTDIR="$1" install
# Force ncurses to link against wide-character ncurses library.
for lib in ncurses form panel menu; do

View File

@ -15,7 +15,7 @@ CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 \
--enable-64bit
make
make install
make DESTDIR="$1" install
# $1 is never unset
# shellcheck disable=2115

View File

@ -10,7 +10,7 @@ BINGRP="$(id -g)" \
--without-pam
make
make install
make DESTDIR="$1" install
mkdir -p "$1/etc"
cp -f doas.conf "$1/etc"

View File

@ -6,4 +6,4 @@
--sysconfdir=/etc
make
make install
make DESTDIR="$1" install

View File

@ -6,4 +6,4 @@
--enable-float-approx
make
make install
make DESTDIR="$1" install

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
patch -p1 < no-fribidi.patch
# Disable download of missing (optional) dependencies

View File

@ -9,4 +9,4 @@
--enable-jit
make
make install
make DESTDIR="$1" install

View File

@ -5,7 +5,7 @@
--sysconfdir=/etc
make
make install
make DESTDIR="$1" install
ln -s pkgconf "$1/usr/bin/pkg-config"

View File

@ -23,7 +23,7 @@ done
--with-ensurepip=yes
make EXTRA_CFLAGS="$CFLAGS -DTHREAD_STACK_SIZE=0x100000"
make install
make DESTDIR="$1" install
ln -s python3 "$1/usr/bin/python"
ln -s pip3 "$1/usr/bin/pip"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
patch -p1 < fix-curl.patch
# Instruct the compiler to trim absolute paths in resulting binaries and instead

View File

@ -1,7 +1,7 @@
#!/bin/sh -e
make PREFIX=/usr
make PREFIX=/usr install
make PREFIX=/usr DESTDIR="$1" install
ln -sf samu "$1/usr/bin/ninja"
ln -sf samu.1 "$1/usr/share/man/man1/ninja.1"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
make PREFIX=/usr
make PREFIX=/usr install
make PREFIX=/usr DESTDIR="$1" install

View File

@ -11,4 +11,4 @@ export CPPFLAGS="$CPPFLAGS -DSQLITE_ENABLE_COLUMN_METADATA"
ac_cv_search_readline=no \
make
make install
make DESTDIR="$1" install

View File

@ -2,6 +2,7 @@
make
make \
DESTDIR="$1" \
PREFIX=/usr \
BINOWN="$(id -u)" \
BINGRP="$(id -g)" \

View File

@ -5,4 +5,4 @@
--disable-mpers
make
make install
make DESTDIR="$1" install

View File

@ -1,11 +1,13 @@
#!/bin/sh -e
pkg_dir=$1
make
make DESTDIR="$1" ZICDIR=/usr/bin install
set -- africa asia australasia europe northamerica southamerica
./zic -d "$DESTDIR/usr/share/zoneinfo" "$@"
./zic -d "$DESTDIR/usr/share/zoneinfo/posix" "$@"
./zic -d "$DESTDIR/usr/share/zoneinfo/right" -L leapseconds "$@"
./zic -d "$DESTDIR/usr/share/zoneinfo" -p America/New_York
./zic -d "$pkg_dir/usr/share/zoneinfo" "$@"
./zic -d "$pkg_dir/usr/share/zoneinfo/posix" "$@"
./zic -d "$pkg_dir/usr/share/zoneinfo/right" -L leapseconds "$@"
./zic -d "$pkg_dir/usr/share/zoneinfo" -p America/New_York

View File

@ -18,7 +18,7 @@
--without-systemd
make
make install
make DESTDIR="$1" install
# Fix broken --sbindir.
mv -f "$1/usr/sbin/"* "$1/usr/bin"

View File

@ -17,4 +17,4 @@
--without-x
make
make install
make DESTDIR="$1" install

View File

@ -6,7 +6,7 @@ export CFLAGS
cd wpa_supplicant
make LIBDIR=/usr/lib BINDIR=/usr/bin
make LIBDIR=/usr/lib BINDIR=/usr/bin install
make LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR="$1" install
mkdir -p \
"$1/usr/share/man/man5" \

View File

@ -10,4 +10,4 @@ patch -p1 < portability.patch
--enable-shared
make
make install
make DESTDIR="$1" install

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
cmake source \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release

View File

@ -4,6 +4,7 @@ sed 's/^FLAGS.*=/FLAGS = -static /' programs/Makefile > _
mv -f _ programs/Makefile
make \
DESTDIR="$1" \
PREFIX=/usr \
HAVE_LZMA=0 \
HAVE_ZLIB=0 \

View File

@ -72,7 +72,7 @@ ac_add_options --disable-system-extension-dirs
EOF
./mach build
./mach install
DESTDIR="$1" ./mach install
# Remove a lot of uneeded "stuff".
rm -rf \

View File

@ -10,4 +10,4 @@ patch -p1 < compose-only.patch
--without-xmlto
make -C nls
make -C nls install
make -C nls DESTDIR="$1" install

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
-Dsvg-backend=none \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
[ "$WAYLAND_DISPLAY" ] || {
printf 'error: foot-pgo requires a running wayland session\n' >&2
exit 1

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--buildtype=release \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
-Djpeg=disabled \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
-Dvalgrind=disabled \

View File

@ -1,5 +1,6 @@
#!/bin/sh -e
export DESTDIR="$1"
export CFLAGS="$CFLAGS -fPIC"
# Build fails with clang due to -Werror (forced on) and

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson setup \
-Dprefix=/usr \
output

View File

@ -3,6 +3,7 @@
# Build fails in with clang due to
# -Werror -> -Wsign-compare.
export CFLAGS="-Wno-error $CFLAGS"
export DESTDIR="$1"
meson \
--prefix=/usr \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--libexecdir=/usr/lib \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson setup \
-Dprefix=/usr \
-Dgtk=disabled \

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--buildtype=release \

Some files were not shown because too many files have changed in this diff Show More