summaryrefslogtreecommitdiffstats
path: root/libraries/libgweather4/libgweather4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libgweather4/libgweather4.SlackBuild')
-rw-r--r--libraries/libgweather4/libgweather4.SlackBuild26
1 files changed, 18 insertions, 8 deletions
diff --git a/libraries/libgweather4/libgweather4.SlackBuild b/libraries/libgweather4/libgweather4.SlackBuild
index 51d8400b10..8d2f5fa7ec 100644
--- a/libraries/libgweather4/libgweather4.SlackBuild
+++ b/libraries/libgweather4/libgweather4.SlackBuild
@@ -22,18 +22,21 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230515 bkw: Modified by SlackBuilds.org to match our template.
+# PRGNAM1 renamed to SRCNAM, and derive PKG from PRGNAM, not PRGNAM1.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libgweather4
-VERSION=${VERSION:-4.0.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.2.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# In purist sense, it's still libgweather but version 4 has different
+# In purist sense, it's still libgweather but version 4 has different
# API and seen as a seperate library than version 3. It can be even installed
# next to version 3.
-PRGNAM1=libgweather
+SRCNAM=libgweather
GTKDOC=${GTKDOC:-no}
INTROSPECTION=${INTROSPECTION:-yes}
@@ -87,7 +90,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
fi
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM1
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
@@ -109,9 +112,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM1-$VERSION
-tar xvf $CWD/$PRGNAM1-$VERSION.tar.xz
-cd $PRGNAM1-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -136,6 +139,8 @@ cd build
-Dgtk_doc=$GTKDOCP \
-Dintrospection=$INTROSPECTIONP \
-Dtests=$TESTSP \
+ -Dsoup2=true \
+ -Dwrap_mode=nodownload \
-Dstrip=true
"${NINJA:=ninja}"
DESTDIR=$PKG $NINJA install
@@ -162,5 +167,10 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+# Before we makepkg, we need to remove stray doc dir if GTKDOC=yes
+if [ "$GTKDOC" = "yes" ]; then
+ rmdir $PKG/usr/share/doc
+fi
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE