blob: 9bcb7b9a174c32c32e6cf1c47e3c5d3ae2d15912 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
# Maintainer: Yauhen Kirylau <yawghen AT gmail.com>
# Upstream URL: https://github.com/actionless/oomox
pkgname=oomox-git
pkgver=1.2.8
pkgrel=1
pkgdesc="Graphical application for generating different color variations
of Numix theme (GTK2, GTK3), gnome-colors and ArchDroid icon themes.
Have a hack for HiDPI in gtk2."
arch=('x86_64' 'i686')
url="https://github.com/actionless/oomox"
license=('GPLv3')
source=(
"git+https://github.com/actionless/oomox.git#branch=master"
"git+https://github.com/actionless/oomox-gtk-theme.git#branch=master"
)
md5sums=(
"SKIP"
"SKIP"
)
depends=(
'coreutils'
'bash'
'bc'
'zip'
'glib2'
'gdk-pixbuf2'
'sassc'
'python-gobject'
'gtk-engine-murrine'
'gtk-engines'
'polkit'
)
optdepends=(
'xorg-xrdb: for the `xresources` theme'
'imagemagick: for icon theme generation'
'inkscape: for icon theme generation'
'gnome-colors-common-icon-theme: for using the generated icon theme'
'breeze-icons: more fallback icons'
'gksu: for applying Spotify theme from GUI without polkit'
#'gnome-colors-icon-theme: for using the generated icon theme' it's broken ATM
)
pkgver() {
cd oomox
git describe | sed 's/^v//;s/-/+/g'
}
prepare(){
cd "${srcdir}/oomox"
git submodule init
git config submodule.mysubmodule.url $srcdir/oomox-gtk-theme
git submodule update
}
package() {
mkdir -p ${pkgdir}/opt/oomox
cd ./oomox
make -f po.mk install
cp -prf \
./CREDITS \
./LICENSE \
./README.md \
./archdroid-icon-theme/ \
./archdroid.sh \
./colors \
./gnome-colors \
./gnome_colors.sh \
./gui.sh \
./locale \
./oomox_gui \
./oomoxify.sh \
./po \
./scripts \
${pkgdir}/opt/oomox
mkdir ${pkgdir}/opt/oomox/gtk-theme
cd ./gtk-theme
cp -prf \
./CHANGES \
./CREDITS \
./LICENSE \
./Makefile \
./README.md \
./change_color.sh \
./scripts \
./src \
${pkgdir}/opt/oomox/gtk-theme
python -O -m compileall ${pkgdir}/opt/oomox/oomox_gui
mkdir -p ${pkgdir}/usr/bin/
mkdir -p ${pkgdir}/usr/share/applications/
cat > ${pkgdir}/usr/bin/oomox-gui <<EOF
#!/bin/sh
cd /opt/oomox/
exec ./gui.sh "\$@"
EOF
chmod +x ${pkgdir}/usr/bin/oomox-gui
cat > ${pkgdir}/usr/bin/oomox-cli <<EOF
#!/bin/sh
cd /opt/oomox/gtk-theme/
exec ./change_color.sh "\$@"
EOF
chmod +x ${pkgdir}/usr/bin/oomox-cli
cat > ${pkgdir}/usr/bin/oomox-gnome-colors-icons-cli <<EOF
#!/bin/sh
cd /opt/oomox/
exec ./gnome-colors.sh "\$@"
EOF
chmod +x ${pkgdir}/usr/bin/oomox-gnome-colors-icons-cli
cat > ${pkgdir}/usr/bin/oomox-archdroid-icons-cli <<EOF
#!/bin/sh
cd /opt/oomox/
exec ./archdroid.sh "\$@"
EOF
chmod +x ${pkgdir}/usr/bin/oomox-archdroid-icons-cli
cat > ${pkgdir}/usr/bin/oomoxify-cli <<EOF
#!/bin/sh
cd /opt/oomox/
exec ./oomoxify.sh "\$@"
EOF
chmod +x ${pkgdir}/usr/bin/oomoxify-cli
cat > ${pkgdir}/usr/share/applications/oomox.desktop <<EOF
[Desktop Entry]
Name=Oomox: customize icons and GTK themes
GenericName=Oomox
Comment=Graphical application for generating different color variations of Numix theme (GTK2, GTK3), gnome-colors and ArchDroid icon themes
Exec=oomox-gui
Terminal=false
Type=Application
Icon=preferences-desktop-theme
Categories=GNOME;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;
Keywords=color;gtk;highlight;theme;widget;numix;
StartupWMClass=oomox
X-GNOME-Gettext-Domain=oomox
X-Desktop-File-Install-Version=0.22
EOF
}
|