summaryrefslogtreecommitdiff
path: root/desktop/ctwm/ctwm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/ctwm/ctwm.SlackBuild')
-rw-r--r--desktop/ctwm/ctwm.SlackBuild21
1 files changed, 13 insertions, 8 deletions
diff --git a/desktop/ctwm/ctwm.SlackBuild b/desktop/ctwm/ctwm.SlackBuild
index 3ac6ff6da5..7c50831c7b 100644
--- a/desktop/ctwm/ctwm.SlackBuild
+++ b/desktop/ctwm/ctwm.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ctwm
-VERSION=${VERSION:-4.0.0}
+VERSION=${VERSION:-4.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,13 +69,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+mkdir -p build
cd build
-cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DMANDIR=/usr/man \
- -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \
- -DEXAMPLEDIR=/usr/doc/$PRGNAM-$VERSION ..
-make
-make DESTDIR="$PKG" install
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMANDIR=/usr/man \
+ -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \
+ -DEXAMPLEDIR=/usr/doc/$PRGNAM-$VERSION \
+ -DCMAKE_BUILD_TYPE=Release ..
+
+ make
+ make install DESTDIR="$PKG"
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -88,7 +93,7 @@ install -D -m0755 $CWD/xinitrc.ctwm $PKG/etc/X11/xinit/xinitrc.ctwm
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.md README.md \
- examples/example.ctwmrc examples/levitte.ctwmrc \
+ examples/example.ctwmrc examples/levitte.ctwmrc \
examples/peterc.ctwmrc $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild