summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Philip van der Hoeven <philip@vd-hoeven.nl>2024-04-28 13:45:30 +0200
committer GitHub <noreply@github.com>2024-04-28 20:45:30 +0900
commit944a2bcd21a442924f5f491fdad6de5a8be8bdf6 (patch)
treedeac2a3f90ec55cd7780c311ab15a754912204a6
parent41b728d079f1de36de9c3f87b7e699be9a171c98 (diff)
downloadslackbuilds-944a2bcd21a442924f5f491fdad6de5a8be8bdf6.tar.gz
slackbuilds-944a2bcd21a442924f5f491fdad6de5a8be8bdf6.tar.xz
desktop/arc-theme: Updated for version 20221218.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
-rw-r--r--desktop/arc-theme/arc-theme.SlackBuild50
-rw-r--r--desktop/arc-theme/arc-theme.info12
2 files changed, 35 insertions, 27 deletions
diff --git a/desktop/arc-theme/arc-theme.SlackBuild b/desktop/arc-theme/arc-theme.SlackBuild
index 8b5bf58ebb..1e5fd96b8e 100644
--- a/desktop/arc-theme/arc-theme.SlackBuild
+++ b/desktop/arc-theme/arc-theme.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for "arc-theme".
# Copyright 2016 Marcel Saegebarth <marc@mos6581.de>
+# Copyright 2024 Philip van der Hoeven <philip@vd-hoeven.nl>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -27,7 +28,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=arc-theme
-VERSION=${VERSION:-20201121_81130a2}
+VERSION=${VERSION:-20221218}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -66,9 +67,6 @@ else
LIBDIRSUFFIX=""
fi
-gnome_shell="--disable-gnome-shell" ; [[ $(which gnome-shell) ]] && gnome_shell=""
-cinnamon="--disable-cinnamon" ; [[ $(which cinnamon-session) ]] && cinnamon=""
-
set -e
rm -rf $PKG
@@ -84,23 +82,33 @@ 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 {} \;
-sed -i "s|export-png=|export-type=png --export-filename=|" common/*/*.am || exit 1
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./autogen.sh \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- $gnome_shell \
- $cinnamon \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+THEMES="gtk2,gtk3,gtk4,metacity,plank,unity,xfwm"
+
+# Check for gnome and cinnamon
+type -P gnome-shell >/dev/null && THEMES+=",gnome-shell"
+type -P cinnamon-session >/dev/null && THEMES+=",cinnamon"
+
+# Build transparent theme
+mkdir build
+cd build
+ meson setup .. \
+ --prefix=/usr \
+ -Dthemes=$THEMES
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+# Build solid theme
+rm -rf build
+mkdir build
+cd build
+ meson setup .. \
+ --prefix=/usr \
+ -Dtransparency=false \
+ -Dthemes=$THEMES
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING HACKING.md README.md $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/desktop/arc-theme/arc-theme.info b/desktop/arc-theme/arc-theme.info
index 37e8664521..e0226cf701 100644
--- a/desktop/arc-theme/arc-theme.info
+++ b/desktop/arc-theme/arc-theme.info
@@ -1,10 +1,10 @@
PRGNAM="arc-theme"
-VERSION="20201121_81130a2"
+VERSION="20221218"
HOMEPAGE="https://github.com/jnsh/arc-theme"
-DOWNLOAD="http://ponce.cc/slackware/sources/repo/arc-theme-20201121_81130a2.tar.xz"
-MD5SUM="bffd762770faf368ad2849534c5e3ad4"
+DOWNLOAD="https://github.com/jnsh/arc-theme/releases/download/20221218/arc-theme-20221218.tar.xz"
+MD5SUM="ac268a1603e85e9a1c8fd07f04f92cc1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="inkscape murrine optipng"
-MAINTAINER="Marcel Saegebarth"
-EMAIL="marc@mos6581.de"
+REQUIRES="murrine"
+MAINTAINER="Philip van der Hoeven"
+EMAIL="philip@vd-hoeven.nl"