summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurentTreguier2016-02-10 09:19:27 +0100
committerLaurentTreguier2016-02-10 09:21:19 +0100
commitb5f1a1a86927e5e2ee6fa9b0e6a8ab5473825410 (patch)
tree69ec2778635a30e8cc38e62aa2accecfa8890323
downloadaur-b5f1a1a86927e5e2ee6fa9b0e6a8ab5473825410.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD40
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8f4ba9bf856
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Wed Feb 10 08:20:51 UTC 2016
+pkgbase = numix-themes-electric
+ pkgdesc = A flat and light theme with a modern look using Arch Linux colors (GNOME, Openbox, Unity, Xfce)
+ pkgver = 2.5.1
+ pkgrel = 1
+ url = http://numixproject.org/
+ arch = any
+ license = GPL3
+ depends = gtk-engine-murrine
+ source = numix-themes-2.5.1.tar.gz::https://github.com/shimmerproject/Numix/archive/v2.5.1.tar.gz
+ md5sums = 4468cb3f2fe0d01e823df7c310778787
+
+pkgname = numix-themes-electric
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..24442068631
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg
+src
+*.tar.* \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b3b36ccfb50
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+pkgname=numix-themes-electric
+pkgver=2.5.1
+pkgrel=1
+pkgdesc='A flat and light theme with a modern look using Arch Linux colors (GNOME, Openbox, Unity, Xfce)'
+arch=('any')
+url='http://numixproject.org/'
+license=('GPL3')
+depends=('gtk-engine-murrine')
+source=("numix-themes-${pkgver}.tar.gz::https://github.com/shimmerproject/Numix/archive/v${pkgver}.tar.gz")
+md5sums=('4468cb3f2fe0d01e823df7c310778787')
+
+prepare() {
+ names='base_color bg_color text_color fg_color selected_bg_color selected_fg_color tooltip_bg_color tooltip_fg_color'
+
+ cd Numix-${pkgver}
+
+ for name in $names
+ do
+ color=$(grep "@define-color\\s\+$name" gtk-3.0/gtk-dark.css | head -n1 | cut -d' ' -f3 | cut -d';' -f1)
+ sed -i "s/$name:#.\{6\}/$name:$color/" gtk-2.0/gtkrc
+ done
+
+ sed -i 's/selected_bg_color:#.\{6\}/selected_bg_color:#00BFFF/' gtk-2.0/gtkrc
+ sed -i 's/selected_fg_color:#.\{6\}/selected_fg_color:#000000/' gtk-2.0/gtkrc
+ sed -i 's/@define-color selected_bg_color #.\{6\}/@define-color selected_bg_color #00BFFF/' gtk-3.0/gtk-dark.css
+ sed -i 's/@define-color selected_fg_color #.\{6\}/@define-color selected_fg_color #000000/' gtk-3.0/gtk-dark.css
+
+ cd gtk-3.0
+
+ rm -f gtk.css
+ mv gtk-dark.css gtk.css
+}
+
+package() {
+ cd Numix-${pkgver}
+
+ install -dm 755 "${pkgdir}"/usr/share/themes/Numix-Electric
+ rm -rf .git .gitignore CREDITS LICENSE README.md
+ cp -dr --no-preserve='ownership' * "${pkgdir}"/usr/share/themes/Numix-Electric/
+}