summaryrefslogtreecommitdiffstats
path: root/desktop/weston/weston.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/weston/weston.SlackBuild')
-rw-r--r--desktop/weston/weston.SlackBuild36
1 files changed, 15 insertions, 21 deletions
diff --git a/desktop/weston/weston.SlackBuild b/desktop/weston/weston.SlackBuild
index 1df0cf009e..362c5d6954 100644
--- a/desktop/weston/weston.SlackBuild
+++ b/desktop/weston/weston.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Weston
-# Copyright 2019-2022 Logan Rathbone <poprocks@gmail.com>
+# Copyright 2019-2023 Logan Rathbone <poprocks@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=weston
-VERSION=${VERSION:-10.0.0}
+VERSION=${VERSION:-10.0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,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
@@ -70,7 +67,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
# Patches
@@ -84,21 +81,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 {} \;
-# nb: pipewire is disabled for now as >= 0.3 not yet supported
-
-mkdir build
-cd build
- CFLAGS="$SLKCFLAGS" \
- CXXFLAGS="$SLKCFLAGS" \
- meson .. \
- --prefix=/usr \
- --mandir=man \
- --libdir=lib${LIBDIRSUFFIX} \
- -Dsystemd=false \
- -Dcolor-management-colord=${USE_COLORD:-false}
- ninja
- DESTDIR=$PKG ninja install
-cd ..
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+meson \
+ --buildtype=release \
+ --prefix=/usr \
+ --mandir=man \
+ --libdir=lib${LIBDIRSUFFIX} \
+ -Dsystemd=false \
+ -Dcolor-management-colord=${USE_COLORD:-false} \
+ build/
+"${NINJA:=ninja}" -v -C build/
+DESTDIR=$PKG $NINJA -C build/ install
# strip
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \