2016-04-09 18:12:32 +02:00
|
|
|
# Maintainer: TheNumb <me (at) thenumb (dot) eu>
|
|
|
|
# Contributor: Martchus <martchus@gmx.net>
|
|
|
|
|
|
|
|
pkgname=gnome-breeze-git
|
2016-05-31 00:07:14 +02:00
|
|
|
pkgver=102.49a5cd6
|
2016-04-09 18:12:32 +02:00
|
|
|
pkgrel=1
|
2016-08-09 01:55:11 +02:00
|
|
|
pkgdesc="A GTK theme created to match with the new Plasma 5 Breeze"
|
2016-04-09 18:12:32 +02:00
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/dirruk1/gnome-breeze"
|
|
|
|
license=('LGPL')
|
|
|
|
optdepends=("gtk2: GTK+2 theme" "gtk3: GTK+3 theme")
|
|
|
|
makedepends=('git')
|
|
|
|
conflicts=('gtk-theme-breezy-gtk3' 'gtk-theme-breezy-gtk2' ' gtk-theme-breezy')
|
2016-04-15 15:52:22 +02:00
|
|
|
# GTK 3.20 version from magnific0 has been merged
|
|
|
|
source=(${pkgname}::"git+https://github.com/dirruk1/gnome-breeze.git")
|
2016-04-09 18:12:32 +02:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
2016-04-15 15:52:22 +02:00
|
|
|
|
|
|
|
# under Arch I suppose we always want the latest GTK 3 version -> determine latest version
|
|
|
|
declare -A _latest
|
|
|
|
for theme in Breeze*; do
|
|
|
|
pushd "$theme" > /dev/null
|
|
|
|
for ver in *; do
|
|
|
|
if [[ -d $ver ]] && [ "${ver:0:6}" == 'gtk-3.' ] && [ $(vercmp "${_latest["$theme"]}" "${ver:6}") -le 0 ]; then
|
|
|
|
_latest["$theme"]="${ver:6}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
popd > /dev/null
|
|
|
|
done
|
|
|
|
|
|
|
|
# install GTK 2 version and latest GTK 3 version
|
|
|
|
for theme in Breeze*; do
|
|
|
|
echo "Installing latest GTK 3 version for $theme which is is 3.${_latest["$theme"]}"
|
2016-05-17 23:05:08 +02:00
|
|
|
find "$theme/"{'gtk-2.0',"gtk-3.${_latest["$theme"]}",'assets'} -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/themes/{}" \;
|
2016-04-15 15:52:22 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
# ensure the GTK 3 themes are still found
|
|
|
|
for theme in Breeze*; do
|
|
|
|
mv "$pkgdir/usr/share/themes/${theme}/gtk-3."{"${_latest["$theme"]}",0}
|
|
|
|
done
|
2016-05-17 23:05:08 +02:00
|
|
|
|
|
|
|
# TODO: also package the scripts and files for color customization
|
2016-04-09 18:12:32 +02:00
|
|
|
}
|