summaryrefslogtreecommitdiffstats
path: root/testing/faenza-icon-theme/APKBUILD
blob: 7a17bdc8af750643c6dd9c8bd67027ea6272523c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:

pkgname=faenza-icon-theme
pkgver=1.2
pkgrel=0
pkgdesc="Icon theme designed for Equinox GTK theme"
url="http://gnome-look.org/content/show.php/Faenza?content=128143"
license="GPL3"
arch="noarch"
depends=""
makedepends="$depends_dev"
install=""
subpackages=""
_themes="Faenza Faenza-Ambiance Faenza-Dark Faenza-Darker Faenza-Darkest Faenza-Radiance"
source="http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/${pkgname}/${pkgname}_${pkgver}.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

package() {
	cd "$_builddir"
	mkdir -p "${pkgdir}"/usr/share/icons
	local theme
	for theme in $_themes; do
		cp -rf $theme "${pkgdir}"/usr/share/icons/
	done;
	# set the Linux Dristributor and start menu logo
	for theme in Faenza Faenza-Dark; do
		for size in 22 24 32 48 64 96; do
			cd "${pkgdir}"/usr/share/icons/${theme}/places/${size}/
			ln -sf distributor-logo.png distributor-logo-alpinelinux.png
			ln -sf start-here.png start-here-alpinelinux.png
		done;
		cd "${pkgdir}"/usr/share/icons/${theme}/places/scalable/
		ln -sf distributor-logo.svg distributor-logo-alpinelinux.svg
		ln -sf start-here.svg start-here-alpinelinux.svg
		ln -sf start-here.svg start-here-alpinelinux-symbolic.svg start-here-synbolic.svg
	done;
}
md5sums="eae3e09a92c4dfd2749b3c46355194fb  faenza-icon-theme_1.2.tar.gz"