Commit 7f44c5dd authored by Stefano Capitani's avatar Stefano Capitani
Browse files

removed unused depends


Signed-off-by: Stefano Capitani's avatarStefano Capitani <stefano@manjaro.org>
parent ad20935c
......@@ -2,29 +2,23 @@
# Author: horst3180 @ deviantart
# This PKGBUILD provide both versions of Arc icon theme
pkgname=('arc-maia-icon-theme' 'arc-icon-theme')
pkgname=('arc-maia-icon-theme')
_pkgbase=arc-icon-theme
pkgver=20161122
pkgrel=3
pkgrel=4
arch=('any')
url="https://github.com/horst3180/arc-icon-theme"
license=('GPL3')
depends=('gtk-update-icon-cache' 'hicolor-icon-theme' 'moka-icon-theme')
depends=('gtk-update-icon-cache' 'hicolor-icon-theme')
makedepends=('inkscape' 'optipng' 'libcanberra')
optdepends=('faba-icon-theme: Smaller version of moka with no application icons'
'elementary-icon-theme: Secondary icon theme fallback'
optdepends=('elementary-icon-theme: Secondary icon theme fallback'
'arc-themes-maia: gtk theme of arc-maia')
options=('!emptydirs' '!strip')
source=("$_pkgbase-$pkgver.tar.gz::https://github.com/horst3180/$_pkgbase/archive/$pkgver.tar.gz")
sha512sums=('5d0f1417358eb81994868949acefe146537d8f3cc2fd7f529f9e6ba9c264845e50962f94427bac1262a76d3ca98d05795819d7c4a6ecd3139b0b57a6e9fdfad1')
_prepare-arc-icon-theme() {
cd "$srcdir/$_pkgbase-$pkgver"
sed -i "s/Inherits=.*/Inherits=Moka,Faba,elementary,Adwaita,gnome,hicolor/" Arc/index.theme
}
source=("$_pkgbase-$pkgver.tar.gz::https://github.com/horst3180/$_pkgbase/archive/$pkgver.tar.gz"
'render_icons.sh')
sha512sums=('5d0f1417358eb81994868949acefe146537d8f3cc2fd7f529f9e6ba9c264845e50962f94427bac1262a76d3ca98d05795819d7c4a6ecd3139b0b57a6e9fdfad1'
'a7695ce03ed2545ad5a0b1c5193d38a71ca6f51a6312a2c980751402d70d3492a41392e6d97351c345639353494a379609a1f9eed30bcc6793bfa79946a6aa07')
_prepare-arc-maia-icon-theme() {
# Rebuild the Arc icon Theme to provide the Maia version
......@@ -41,13 +35,13 @@ _prepare-arc-maia-icon-theme() {
find . -type f -name '*.*' -exec sed -i "s/64a0e6/44E2BC/g" {} \;
cd "$srcdir/$_pkgbase-$pkgver-maia/src"
# Start icons rendering
echo
msg "Create arc-icon-theme-maia:this next bit might take a little while..."
echo
sh render_icons.sh
sh ./render_icons.sh
# Add moka, faba and elementary theme as fallback theme
cd "$srcdir/$_pkgbase-$pkgver-maia"
sed -i "s/Inherits=.*/Inherits=Moka,Faba,elementary,Adwaita,gnome,hicolor/" Arc/index.theme
......@@ -59,13 +53,8 @@ _prepare-arc-maia-icon-theme() {
prepare() {
cp -R "$srcdir/$_pkgbase-$pkgver" "$srcdir/$_pkgbase-$pkgver-maia"
}
cp -f render_icons.sh "$srcdir/$_pkgbase-$pkgver-maia/src/"
_build_arc-icon-theme() {
_prepare-arc-icon-theme
cd "$srcdir/$_pkgbase-$pkgver"
./autogen.sh --prefix=/usr
make
}
_build_arc-maia-icon-theme() {
......@@ -75,13 +64,6 @@ _build_arc-maia-icon-theme() {
make
}
package_arc-icon-theme() {
pkgdesc='Arc icon theme Official.'
_build_arc-icon-theme
cd "$srcdir/$_pkgbase-$pkgver"
make DESTDIR="${pkgdir}" install
}
package_arc-maia-icon-theme() {
pkgdesc='Arc icon theme Manjaro variant.'
_build_arc-maia-icon-theme
......@@ -91,4 +73,4 @@ pkgdesc='Arc icon theme Manjaro variant.'
# Move the Theme into new folder Arc-Maia
cd "$pkgdir/usr/share/icons"
mv Arc Arc-Maia
}
\ No newline at end of file
}
#!/bin/bash
INKSCAPE="/usr/bin/inkscape"
OPTIPNG="/usr/bin/optipng"
pushd `dirname $0` > /dev/null
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
popd > /dev/null
cd ${DIR}
THEMEDIR=../Arc
mkdir -p $THEMEDIR
#for CONTEXT in actions apps categories devices emblems mimetypes places status
for CONTEXT in places
do
mkdir -p $THEMEDIR/$CONTEXT
mkdir -p $THEMEDIR/$CONTEXT
cp -r $CONTEXT/symbolic $THEMEDIR/$CONTEXT
for SIZE in 16 22 24 32 48 64 96 128
do
$INKSCAPE -S $CONTEXT.svg | grep -E "_$SIZE" | sed 's/\,.*$//' > index.tmp
mkdir -p $THEMEDIR/$CONTEXT/$SIZE
mkdir -p $THEMEDIR/$CONTEXT/$SIZE@2x
cp -r $CONTEXT/symlinks/* $THEMEDIR/$CONTEXT/$SIZE
cp -r $CONTEXT/symlinks/* $THEMEDIR/$CONTEXT/$SIZE@2x
for OBJECT_ID in `cat index.tmp`
do
ICON_NAME=$(sed "s/\_$SIZE.*$//" <<< $OBJECT_ID)
if [ -f $THEMEDIR/$CONTEXT/$SIZE/$ICON_NAME.png ]; then
echo $THEMEDIR/$CONTEXT/$SIZE/$ICON_NAME.png exists.
else
echo
echo Rendering $THEMEDIR/$CONTEXT/$SIZE/$ICON_NAME.png
$INKSCAPE --export-id=$OBJECT_ID \
--export-id-only \
--export-png=$THEMEDIR/$CONTEXT/$SIZE/$ICON_NAME.png $CONTEXT.svg >/dev/null \
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
fi
if [ -f $THEMEDIR/$CONTEXT/$SIZE@2x/$ICON_NAME.png ]; then
echo $THEMEDIR/$CONTEXT/$SIZE@2x/$ICON_NAME.png exists.
else
echo
echo Rendering $THEMEDIR/$CONTEXT/$SIZE@2x/$ICON_NAME.png
$INKSCAPE --export-id=$OBJECT_ID \
--export-dpi=180 \
--export-id-only \
--export-png=$THEMEDIR/$CONTEXT/$SIZE@2x/$ICON_NAME.png $CONTEXT.svg >/dev/null \
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i@2.png
fi
done
done
done
rm index.tmp
cp index.theme $THEMEDIR/index.theme
rm -rf $THEMEDIR/actions/{32,32@2x,48,48@2x,64,64@2x,96,96@2x,128,128@2x} # derp
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment