|
|
@ -129,22 +129,12 @@ if [ "$P1" == "--download" ]; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cd $TMP/tmp-$PRGNAM
|
|
|
|
cd $TMP/tmp-$PRGNAM
|
|
|
|
echo "Extracting the source archive(s) for $PRGNAM..."
|
|
|
|
bsdtar -xvf ${SOURCE}
|
|
|
|
if $(file ${SOURCE} | grep -qi ": 7-zip"); then
|
|
|
|
|
|
|
|
7za x ${SOURCE}
|
|
|
|
|
|
|
|
elif $(file ${SOURCE} | grep -qi ": zip"); then
|
|
|
|
|
|
|
|
unzip ${SOURCE}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
tar -xvf ${SOURCE}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${PRGNAM}
|
|
|
|
cd ${PRGNAM}
|
|
|
|
chown -R root:root .
|
|
|
|
chown -R root:root .
|
|
|
|
chmod -R u+w,go+r-w,a+rX-st .
|
|
|
|
chmod -R u+w,go+r-w,a+rX-st .
|
|
|
|
|
|
|
|
|
|
|
|
# Patch a file with incorrect syntax
|
|
|
|
|
|
|
|
# https://bugs.trinitydesktop.org/show_bug.cgi?id=2543
|
|
|
|
|
|
|
|
patch -p1 < $SRCDIR/perlfix.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p build-${PRGNAM}
|
|
|
|
mkdir -p build-${PRGNAM}
|
|
|
|
cd build-${PRGNAM}
|
|
|
|
cd build-${PRGNAM}
|
|
|
|
cmake \
|
|
|
|
cmake \
|
|
|
|