summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a0a481090d717ae7249516735151b4748117482 (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
# Maintainer: Yauhen Kirylau <actionless DOT loveless PLUS aur AT gmail MF com>
# Upstream URL: https://github.com/themix-project/oomox

pkgname=themix-gui-git
pkgver=1.15.1
pkgrel=1
pkgdesc="Plugin-based theme designer GUI for
 environments (like GTK2, GTK3, Cinnamon, GNOME, MATE, Openbox, Xfwm),
 icons and terminal palettes."
arch=('x86_64' 'i686')
url="https://github.com/themix-project/oomox"
license=('GPL3')
source=(
	"git+https://github.com/themix-project/oomox.git#branch=master"
)
md5sums=('SKIP')
depends=(
	'gtk3'
	'python-gobject'
	'python-cairo'
)
makedepends=(
	'git'
)
optdepends=(
	'themix-import-images: Import palettes from images'

	'themix-export-spotify: Apply theme to Spotify'

	'themix-plugin-base16: Import and export from Base16 project format'

	#'themix-theme-arc: Theme Style plugin'
	'themix-theme-materia: Theme Style plugin'
	'themix-theme-oomox: Theme Style plugin'

	'themix-icons-archdroid: Icons Style plugin'
	'themix-icons-gnome-colors: Icons Style plugin'
	'themix-icons-numix: Icons Style plugin'
	'themix-icons-papirus: Icons Style plugin'
	'themix-icons-suru-plus: Icons Style plugin'
	'themix-icons-suru-plus-aspromauros: Icons Style plugin'

    'oomox-qt5-styleplugin-git: Qt5 style plugin'
    'oomox-qt6-styleplugin-git: Qt6 style plugin'

	'xorg-xrdb: for the `xresources` theme'
)
provides=('themix-gui')
conflicts=(
    'themix-gui'
    'oomox'
    'oomox-git'
)

pkgver() {
	cd "${srcdir}/oomox"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	_oomox_dir=/opt/oomox
	_oomox_gui_dir=${_oomox_dir}/oomox_gui

	cd "${srcdir}/oomox"
	make DESTDIR="${pkgdir}" APPDIR="${_oomox_dir}" PREFIX="/usr" install_gui install_import_xresources install_export_xresources
	python -O -m compileall ${pkgdir}${_oomox_gui_dir} -d ${_oomox_gui_dir}
}

# vim: ft=PKGBUILD