|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2014 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2014,2019 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -78,7 +78,7 @@ if [ ! -r $ARCHIVE ]; then |
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
fi |
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
# Compile |
|
|
@ -86,6 +86,7 @@ cd $TMP |
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
cd $NAME |
|
|
|
patch -p 1 < $CWD/mapmaker-0.3.0-fix-missing-includes.patch |
|
|
|
mkdir build && cd build |
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
@ -111,6 +112,11 @@ cp -r examples $PKG/usr/doc/$NAME |
|
|
|
# Copy slack-desc file |
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
# Add dependency infos |
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
yaml-cpp |
|
|
|
EOF |
|
|
|
|
|
|
|
# Package the tree |
|
|
|
cd $PKG |
|
|
|
mkdir -p $OUT |
|
|
|