Skip to content

Commit 032be88

Browse files
committed
install-build-deps.sh: avoid overwriting liblz4.pc if provided by liblz4-dev
Signed-off-by: Tim Janik <[email protected]>
1 parent e38a73b commit 032be88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install-build-deps.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ if [ -e /usr/bin/apt-get ] ; then
2424
sudo apt-get -y install zsync git libarchive-dev autoconf libtool make gcc g++ libtool libfuse-dev \
2525
liblzma-dev libglib2.0-dev libssl-dev libinotifytools0-dev liblz4-dev libcairo-dev desktop-file-utils cmake
2626
# libtool-bin might be required in newer distributions but is not available in precise
27-
sudo cp resources/liblz4.pc /usr/lib/$ARCH-linux-gnu/pkgconfig/
27+
test -e /usr/lib/$ARCH-linux-gnu/pkgconfig/liblz4.pc ||
28+
sudo cp -v resources/liblz4.pc /usr/lib/$ARCH-linux-gnu/pkgconfig/
2829
if cat /etc/lsb-release | grep 14.04 2>&1 >/dev/null; then
2930
export CMAKE_VERSION=3.10.0
3031
# sometimes, using a crowbar is easier than fiddling with PPAs

0 commit comments

Comments
 (0)