summaryrefslogtreecommitdiff
path: root/office/task/task.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/task/task.SlackBuild')
-rw-r--r--office/task/task.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/office/task/task.SlackBuild b/office/task/task.SlackBuild
index 7b99506b86..8588b68b8d 100644
--- a/office/task/task.SlackBuild
+++ b/office/task/task.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=task
-VERSION=${VERSION:-2.1.2}
+VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -52,11 +52,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Build
+sed -i CMakeLists.txt \
+ -e "s,share/man/man1,man/man1," \
+ -e "s,share/man/man5,man/man5," \
+ -e "s,share/doc/task,doc/$PRGNAM-$VERSION,"
+
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr
make clean
make
@@ -65,11 +69,8 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
-find $PKG -depth -type d -empty -delete || true
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING INSTALL NEWS README \
@@ -81,4 +82,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-