summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. Can Celasun2018-04-05 09:22:55 +0200
committerD. Can Celasun2018-04-05 09:22:55 +0200
commitdc826ef7684f6dd1ea146aad55c2556e100f105a (patch)
treed07012196d7ae5a765786426b0be6f2fd81b8570
downloadaur-dc826ef7684f6dd1ea146aad55c2556e100f105a.tar.gz
[canta-theme-git] Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD48
-rw-r--r--installer.patch19
4 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c0ce6fe0d77
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+# Generated by mksrcinfo v8
+# Thu Apr 5 07:22:41 UTC 2018
+pkgbase = canta-theme-git
+ pkgdesc = Flat Material Design theme for GTK 3, GTK 2 and Gnome-Shell
+ pkgver = Canta.theme_2018_03_28.r0.223123c
+ pkgrel = 1
+ url = https://github.com/vinceliuice/Canta-theme
+ arch = any
+ license = GPL2
+ makedepends = gtk3
+ makedepends = git
+ optdepends = numix-circle-icon-theme-git: recommended base icon theme
+ optdepends = gtk-engine-murrine: needed for gtk2 theme
+ optdepends = gnome-themes-standard: needed for gtk2 theme
+ source = canta-theme::git+https://github.com/vinceliuice/Canta-theme.git
+ source = installer.patch
+ md5sums = SKIP
+ md5sums = 6e71e7637aaf124e4271366e15b596ec
+
+pkgname = canta-gtk-theme-git
+
+pkgname = canta-icon-theme-git
+ pkgdesc = Flat icons for Canta GTK theme
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6ee8cdc9b39
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+canta-theme/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..483fd1bf961
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Can Celasun <can [at] dcc [dot] im>
+
+pkgbase=canta-theme-git
+_pkgname=canta-theme
+pkgname=('canta-gtk-theme-git' 'canta-icon-theme-git')
+pkgdesc="Flat Material Design theme for GTK 3, GTK 2 and Gnome-Shell"
+pkgver=Canta.theme_2018_03_28.r0.223123c
+pkgrel=1
+arch=('any')
+url="https://github.com/vinceliuice/Canta-theme"
+license=('GPL2')
+optdepends=('numix-circle-icon-theme-git: recommended base icon theme'
+ 'gtk-engine-murrine: needed for gtk2 theme'
+ 'gnome-themes-standard: needed for gtk2 theme')
+makedepends=('gtk3' 'git')
+
+source=("${_pkgname}::git+https://github.com/vinceliuice/Canta-theme.git"
+ "installer.patch")
+md5sums=('SKIP'
+ '6e71e7637aaf124e4271366e15b596ec')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+
+ # Build GTK theme
+ patch -Np1 < "${srcdir}"/installer.patch
+ rm -rf build
+ mkdir build
+ DEST_DIR=build ./install.sh
+}
+
+package_canta-gtk-theme-git() {
+ mkdir -p "${pkgdir}"/usr/share/themes/
+ cp "${srcdir}"/${_pkgname}/build/* "${pkgdir}"/usr/share/themes/ -R
+}
+
+package_canta-icon-theme-git() {
+ pkgdesc="Flat icons for Canta GTK theme"
+
+ mkdir -p "${pkgdir}"/usr/share/icons/Canta
+ cp "${srcdir}"/${_pkgname}/src/icons/Canta/* "${pkgdir}"/usr/share/icons/Canta -R
+}
+
diff --git a/installer.patch b/installer.patch
new file mode 100644
index 00000000000..71044f25c46
--- /dev/null
+++ b/installer.patch
@@ -0,0 +1,19 @@
+--- a/install.sh 2018-04-05 09:06:51.404098398 +0200
++++ b/install.sh 2018-04-05 09:07:19.957454517 +0200
+@@ -2,16 +2,6 @@
+ #set -ueo pipefail
+ #set -x
+
+-ROOT_UID=0
+-DEST_DIR=
+-
+-# Destination directory
+-if [ "$UID" -eq "$ROOT_UID" ]; then
+- DEST_DIR="/usr/share/themes"
+-else
+- DEST_DIR="$HOME/.themes"
+-fi
+-
+ SRC_DIR=$(cd $(dirname $0) && pwd)
+
+ THEME_NAME=Canta