forked from themix-project/themix-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
104 lines (88 loc) · 2.46 KB
/
PKGBUILD
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
# Maintainer: Yauhen Kirylau <yawghen AT gmail.com>
# Upstream URL: https://github.com/actionless/oomox
pkgname=oomox-git
pkgver=1.0.0
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"
)
md5sums=("SKIP")
depends=(
'bash'
'bc'
'zip'
'glib2'
'gdk-pixbuf2'
'ruby-sass'
'python-gobject'
'gtk-engine-murrine'
'gtk-engines'
)
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'
'gksu: for applying Spotify theme from GUI'
#'gnome-colors-icon-theme: for using the generated icon theme' it's broken ATM
)
pkgver() {
cd oomox
git describe | sed 's/^v//;s/-/./g'
}
package() {
mkdir -p ${pkgdir}/opt/oomox
mv ./oomox/* ${pkgdir}/opt/oomox
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/
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=__main__.py
X-GNOME-Gettext-Domain=oomox
X-Desktop-File-Install-Version=0.22
EOF
}