Skip to content

Commit

Permalink
Added autotools for a more elegant install and updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurizio Galli committed May 19, 2022
1 parent 675a9c7 commit e151182
Show file tree
Hide file tree
Showing 57 changed files with 78 additions and 4 deletions.
25 changes: 25 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
PREFIX=@prefix@
DESTDIR=
CC?=gcc

builddir:
mkdir -p build
mkdir -p build/adwaita-xfce && cp -R adwaita-xfce/. build/adwaita-xfce

install:
install -d $(DESTDIR)/$(PREFIX)/share/icons
cp -rf build/adwaita-xfce $(DESTDIR)/$(PREFIX)/share/icons
@echo
@echo The icon-theme cache has not yet been regenerated, which means your changes may not be visible yet. Please run 'make icon-caches' next.

uninstall:
rm -rf $(DESTDIR)/$(PREFIX)/share/icons/adwaita-xfce

icon-caches:
gtk-update-icon-cache -f $(DESTDIR)/$(PREFIX)/share/icons/adwaita-xfce

.PHONY: all $(SUBDIRS)

clean:
rm -rf ./build
rm -rf ./Makefile
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
# Adwaita-Xfce icon theme

This icon theme inherits from Adwaita. It is not a full icon theme but rather an extension for Adwaita fixing missing icons that are used in Xfce.
This icon theme is an extension for Adwaita fixing missing icons that are used in Xfce. It is not a complete theme and inherits the bulk of icons from Adwaita.

## Requirements

You need adwaita icon theme to be installed in your system
You need the original adwaita icon theme installed in your system

## Installation

Clone this repository and place the content in $HOME/.local/icons or /usr/share/icons
You can use the Makefile to install the theme locally (default prefix is /usr/local).


### Installation for the current user only (without admin privileges)

```
./configure --prefix=$HOME/.local
make
make install
make icon-caches
```

### Installation for all users (default path is /usr/local)

```
./configure
make
sudo make install
sudo make icon-caches
```

## Usage

Select adwaita-xfce in Xfce Settings > Appearance > Icons
1. Open Xfce Settings > Appearance > Icons
2. Select Adwaita-Xfce
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
29 changes: 29 additions & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh

help () {
echo "Supported options are:"
echo " --help print this help and exit"
echo " --prefix=<path> specify installation prefix"
echo " default <path> is /usr/local"
}

PREFIX="/usr/local"
while [ $# -gt 0 ]; do
case $1 in
--help)
help
exit 0
;;
--prefix=*)
PREFIX=`echo $1 | sed 's/--prefix=//'`
;;
*)
echo "Unknown option $1"
;;
esac
shift
done

echo "Creating Makefile..."
sed -e s,@prefix@,$PREFIX, Makefile.in > Makefile
echo "Installation prefix is $PREFIX"

0 comments on commit e151182

Please sign in to comment.