diff options
Diffstat (limited to 'desktop/awf')
-rw-r--r-- | desktop/awf/README | 6 | ||||
-rw-r--r-- | desktop/awf/awf.SlackBuild | 61 | ||||
-rw-r--r-- | desktop/awf/awf.info | 12 | ||||
-rw-r--r-- | desktop/awf/slack-desc | 10 |
4 files changed, 62 insertions, 27 deletions
diff --git a/desktop/awf/README b/desktop/awf/README index b87124a054..cf86108962 100644 --- a/desktop/awf/README +++ b/desktop/awf/README @@ -1,3 +1,3 @@ -A widget factory is a theme preview application for gtk2 and gtk3. -It displays the various widget types provided by gtk2/gtk3 in a -single window allowing to see the visual effect of the applied theme. +A widget factory is a theme preview application for GTK. It displays the +various widget types provided by GTK in a single window allowing to see +the visual effect of the applied theme. diff --git a/desktop/awf/awf.SlackBuild b/desktop/awf/awf.SlackBuild index 37a22f50aa..e16b41e53d 100644 --- a/desktop/awf/awf.SlackBuild +++ b/desktop/awf/awf.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for awf -# Copyright 2017 Leonardo Citrolo, Italy +# Copyright 2025 Fabrice Creuzot, France # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=awf -VERSION=${VERSION:-1.4.0} +VERSION=${VERSION:-3.0.0} 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 @@ -69,9 +66,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-extended-$VERSION +tar xvf $CWD/$PRGNAM-extended-$VERSION.tar.gz +cd $PRGNAM-extended-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -79,21 +76,59 @@ 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 {} \; -./autogen.sh -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +# action +autoreconf -fiv ./configure \ --prefix=/usr \ - --build=$ARCH-slackware-linux + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux \ + --disable-gtk5 make make install DESTDIR=$PKG +for gtk in "gtk2" "gtk3" "gtk4"; do + + install -Dpm 644 data/awf-$gtk.desktop $PKG/usr/share/applications/awf-$gtk.desktop + + cp -ar data/icons/ icons-$gtk/ + for file in icons-$gtk/*/*/awf.png; do mv $file `dirname $file`/awf-$gtk.png; done + for file in icons-$gtk/*/*/awf.svg; do mv $file `dirname $file`/awf-$gtk.svg; done + install -dm 755 $PKG/usr/share/icons/hicolor/ + cp -a icons-$gtk/* $PKG/usr/share/icons/hicolor/ + + install -Dpm 644 data/awf-$gtk.1 $PKG/usr/man/man1/awf-$gtk.1 + install -Dpm 644 data/awf-$gtk.fr.1 $PKG/usr/man/fr/man1/awf-$gtk.1 + + if pkg-config --exists bash-completion ; then + install -Dpm 644 data/awf-$gtk.bash $PKG/usr/share/bash-completion/completions/awf-$gtk + fi + + for file in src/po/*.po; do + code=`basename "$file" .po` + mkdir -p locale-$gtk/$code/LC_MESSAGES/ + msgfmt src/po/$code.po -o locale-$gtk/$code/LC_MESSAGES/awf-$gtk.mo + install -Dpm 644 locale-$gtk/$code/LC_MESSAGES/awf-$gtk.mo $PKG/usr/share/locale/$code/LC_MESSAGES/awf-$gtk.mo + done +done + +# cleanup +rm -rf icons-gtk*/ locale-gtk*/ +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README README.md \ +cp -a \ + README.md LICENSE \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/desktop/awf/awf.info b/desktop/awf/awf.info index 0df24235ab..fa38ffb7a4 100644 --- a/desktop/awf/awf.info +++ b/desktop/awf/awf.info @@ -1,10 +1,10 @@ PRGNAM="awf" -VERSION="1.4.0" -HOMEPAGE="https://github.com/valr/awf" -DOWNLOAD="https://github.com/valr/awf/archive/v1.4.0/awf-1.4.0.tar.gz" -MD5SUM="c1d5d53630517fe34fe93f122fa0d713" +VERSION="3.0.0" +HOMEPAGE="https://github.com/luigifab/awf-extended" +DOWNLOAD="https://github.com/luigifab/awf-extended/archive/v3.0.0/awf-extended-3.0.0.tar.gz" +MD5SUM="81b190393edeffb8c2536935ca883cc4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Leo C." -EMAIL="leoc@gmx.com" +MAINTAINER="Fabrice Creuzot" +EMAIL="code@luigifab.fr" diff --git a/desktop/awf/slack-desc b/desktop/awf/slack-desc index 9b55c932da..961cd33f71 100644 --- a/desktop/awf/slack-desc +++ b/desktop/awf/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| awf: awf (A Widget Factory) awf: -awf: A widget factory is a theme preview application for gtk2 and gtk3. -awf: It displays the various widget types provided by gtk2/gtk3 in a -awf: single window allowing to see the visual effect of the applied theme. +awf: A widget factory is a theme preview application for GTK. It displays +awf: the various widget types provided by GTK in a single window allowing +awf: to see the visual effect of the applied theme. awf: +awf: For GTK 2.24, 3.x, 4.x. awf: awf: -awf: -awf: Homepage: https://github.com/valr/awf +awf: Homepage: https://github.com/luigifab/awf-extended awf: |