Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build.sudo
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ PKGS=(
libavformat-dev
libbz2-dev
liblzma-dev
libopenjp2-7-dev
libpango1.0-dev
libpq-dev
libreadline-dev
libssl-dev
libtool
nasm
ninja-build
rustup
yasm
)

Expand Down
5 changes: 2 additions & 3 deletions ghostscript.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ pkg-config --cflags jbig2dec
export CPPFLAGS=$(pkg-config --cflags jbig2dec)

pkg-config --libs jbig2dec
# export LIBS=$(pkg-config --libs jbig2dec)
export LIBS="-L/home/wwwutz/paperless/2.16.3/jbig2dec-0.20/lib -l:libjbig2dec.a"
export LIBS=$(pkg-config --libs jbig2dec)

for i in jbig2dec freetype lcms2mt jpeg libpng openjpeg tiff zlib tesseract leptonica; do
mv -v $i without-$i
Expand All @@ -50,7 +49,7 @@ done

local _conf=(
--prefix="${PREFIX}"
--with-x
--without-x
--with-drivers=FILES,PS,TIFF
--disable-contrib
# --disable-gtk
Expand Down
9 changes: 6 additions & 3 deletions pngquant.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ local _conf=(
--release
)

[ -d /usr/local/package/bin ] && PATH=${PATH}:/usr/local/package/bin

[ -d ~/.cargo/bin ] && PATH=${PATH}:~/.cargo/bin
if [[ -d /usr/local/package/bin ]]; then
PATH=${PATH}:/usr/local/package/bin
else
[ -d ~/.cargo/bin ] && PATH=${PATH}:~/.cargo/bin
rustup default stable
fi

CARGO_HOME=.cargo cargo build "${_conf[@]}"

Expand Down