summaryrefslogtreecommitdiffstats
path: root/system/agedu/agedu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/agedu/agedu.SlackBuild')
-rw-r--r--system/agedu/agedu.SlackBuild34
1 files changed, 16 insertions, 18 deletions
diff --git a/system/agedu/agedu.SlackBuild b/system/agedu/agedu.SlackBuild
index 5adc86d82f..48c2ccaaa9 100644
--- a/system/agedu/agedu.SlackBuild
+++ b/system/agedu/agedu.SlackBuild
@@ -2,10 +2,11 @@
# Slackware build script for agedu
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20221226 bkw: Update for v20211129.8cd63c5 (autoconf => cmake).
# 20201025 bkw: Update for v20200705.2a7d4a2.
# 20200302 bkw: Update for v20200206.963bc9d.
# 20191130 bkw: Update for v20190630.66cb14d.
@@ -18,7 +19,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=agedu
-VERSION=${VERSION:-20200705.2a7d4a2}
+VERSION=${VERSION:-20211129.8cd63c5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -31,9 +32,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -69,19 +67,19 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-make
-make install-strip DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DCMAKE_INSTALL_MANDIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make VERBOSE=1
+ make install/strip DESTDIR=$PKG
+cd ..
+
gzip $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION