summaryrefslogtreecommitdiff
path: root/desktop/ctwm/ctwm.SlackBuild
diff options
context:
space:
mode:
authorLeonard Schmidt <lems@gmx.net>2017-06-06 11:28:08 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-10 10:47:36 +0700
commit2b3d5d2bf497e778ae6707e817fc28ec97dfe792 (patch)
tree790a62f7db3c45ee2a8812a6747bf0ce8386664c /desktop/ctwm/ctwm.SlackBuild
parentf116d9c8e373b486871e016d80e9d8859734347d (diff)
downloadslackbuilds-2b3d5d2bf497e778ae6707e817fc28ec97dfe792.tar.gz
desktop/ctwm: Updated for version 4.0.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
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