Skip to content

Commit f461833

Browse files
committed
chore(packaging: arch): prepare PKGBUILD for Materia theme plugin (re: #129)
1 parent 1570f31 commit f461833

File tree

4 files changed

+92
-13
lines changed

4 files changed

+92
-13
lines changed

packaging/arch/PKGBUILD_gui

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Upstream URL: https://github.com/themix-project/oomox
33

44
pkgname=themix-gui-git
5-
pkgver=1.12.6
6-
pkgrel=1
5+
pkgver=1.12.6.r7.g7bd6e2fd
6+
pkgrel=2
77
pkgdesc="Plugin-based theme designer GUI for
88
environments (like GTK2, GTK3, Cinnamon, GNOME, MATE, Openbox, Xfwm),
9-
icons, and terminal palettes."
9+
icons and terminal palettes."
1010
arch=('x86_64' 'i686')
1111
url="https://github.com/themix-project/oomox"
1212
license=('GPL3')
@@ -25,6 +25,7 @@ makedepends=(
2525
)
2626
optdepends=(
2727
'themix-icons-gnome-colors: Icons Style plugin'
28+
'themix-theme-materia: Theme Style plugin'
2829
'themix-theme-oomox: Theme Style plugin'
2930
'xorg-xrdb: for the `xresources` theme'
3031
)

packaging/arch/PKGBUILD_icons_gnome_colors

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
_pkgname=themix-icons-gnome-colors
55
_reponame=gnome-colors-icon-theme
66
pkgname="${_pkgname}-git"
7-
pkgver=5.5.5
8-
pkgrel=1
7+
pkgver=5.5.5.r0.gcd8b05a
8+
pkgrel=2
99
pkgdesc="Gnome-Colors icons plugin for Themix GUI designer"
1010
arch=('x86_64' 'i686')
1111
url="https://github.com/themix-project/gnome-colors-icon-theme"
@@ -19,12 +19,12 @@ md5sums=(
1919
"SKIP"
2020
)
2121
depends=(
22-
'librsvg' # oomox, gnome-colors
23-
'sed' # oomox, materia, arc, gnome-colors, archdroid
24-
'findutils' # oomox, materia, arc, gnome-colors, arch-droid
25-
'grep' # oomoxify, oomox, materia, arc, gnome-colors
26-
'bc' # oomoxify, oomox, materia, arc, gnome-colors
27-
'imagemagick' # gnome-colors
22+
'librsvg'
23+
'sed'
24+
'findutils'
25+
'grep'
26+
'bc'
27+
'imagemagick'
2828
)
2929
makedepends=(
3030
'git'
@@ -58,7 +58,7 @@ package() {
5858
cp -r "${srcdir}/${_reponame}" "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath}"
5959

6060
cd "$pkg_tmp_dir"
61-
make DESTDIR="${pkgdir}" APPDIR="${_oomox_dir}" PREFIX="/usr" install_icons_gnomecolors
61+
make DESTDIR="${pkgdir}" APPDIR="${_oomox_dir}" PREFIX="/usr" "install_${_plugin_name}"
6262
rm -fr "$pkg_tmp_dir"
6363

6464
python -O -m compileall "${pkgdir}${_oomox_dir}/plugins/${_plugin_name}" -d "${_oomox_dir}/plugins/${_plugin_name}"

packaging/arch/PKGBUILD_theme_materia

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Maintainer: Yauhen Kirylau <actionless DOT loveless PLUS aur AT gmail MF com>
2+
# Upstream URL: https://github.com/nana-4/materia-theme/
3+
4+
_pkgname=themix-theme-materia
5+
_reponame=materia-theme
6+
pkgname="${_pkgname}-git"
7+
pkgver=v20191017.r149.gb6ccc2a9
8+
pkgrel=1
9+
pkgdesc="Materia theme plugin
10+
(GTK2, GTK3, Cinnamon, GNOME, Metacity, Unity, Xfwm) for Themix GUI designer.
11+
Have a hack for HiDPI in GTK2."
12+
arch=('x86_64' 'i686')
13+
url="https://github.com/themix-project/oomox-gtk-theme"
14+
license=('GPL3')
15+
source=(
16+
"git+https://github.com/themix-project/oomox.git#branch=master"
17+
"${_reponame}::git+https://github.com/nana-4/materia-theme.git#branch=master"
18+
)
19+
md5sums=(
20+
"SKIP"
21+
"SKIP"
22+
)
23+
depends=(
24+
'gtk3'
25+
'glib2'
26+
'gdk-pixbuf2'
27+
'gtk-engine-murrine'
28+
'gtk-engines'
29+
'gnome-themes-extra'
30+
'sassc'
31+
'sed'
32+
'findutils'
33+
'grep'
34+
'bc'
35+
'parallel'
36+
'optipng'
37+
38+
'resvg'
39+
## or
40+
#'inkscape'
41+
)
42+
makedepends=(
43+
'git'
44+
'python'
45+
)
46+
optdepends=(
47+
'themix-gui: GUI'
48+
)
49+
options=(
50+
'!strip'
51+
)
52+
provides=($_pkgname)
53+
conflicts=($_pkgname)
54+
55+
pkgver() {
56+
cd "${srcdir}/${_reponame}"
57+
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
58+
}
59+
60+
package() {
61+
_oomox_dir=/opt/oomox
62+
_plugin_name=theme_materia
63+
_plugin_subpath="/${_reponame}"
64+
65+
pkg_tmp_dir="${pkgdir}/_tmp"
66+
rm -fr "$pkg_tmp_dir"
67+
cp -r "${srcdir}/oomox" "$pkg_tmp_dir"
68+
rm -rf "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath}"
69+
cp -r "${srcdir}/${_reponame}" "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath}"
70+
71+
cd "$pkg_tmp_dir"
72+
make DESTDIR="${pkgdir}" APPDIR="${_oomox_dir}" PREFIX="/usr" "install_${_plugin_name}"
73+
rm -fr "$pkg_tmp_dir"
74+
75+
python -O -m compileall "${pkgdir}${_oomox_dir}/plugins/${_plugin_name}" -d "${_oomox_dir}/plugins/${_plugin_name}"
76+
}
77+
78+
# vim: ft=PKGBUILD

plugins/theme_oomox

0 commit comments

Comments
 (0)