summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD96
-rw-r--r--archlinux-logo-gray-scalable.svg151
-rw-r--r--gschemas.install20
4 files changed, 284 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..a83cda27a558
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = gnome-shell-extension-activities-config
+ pkgdesc = Configure the Activities Button with the Activities Configurator Extension and the Gnome Shell Extension Preferences Tool.
+ pkgver = 36
+ pkgrel = 1
+ url = https://extensions.gnome.org/extension/358/activities-configurator/
+ install = gschemas.install
+ arch = any
+ license = GPLv2
+ depends = gnome-shell>=3.8
+ depends = gnome-shell-extensions
+ source = extension.html::https://extensions.gnome.org/extension/358/activities-configurator/
+ source = archlinux-logo-gray-scalable.svg
+ md5sums = SKIP
+ md5sums = 69063bc3433d20d9de0f9dce2269186b
+
+pkgname = gnome-shell-extension-activities-config
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..e49e9fc114aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,96 @@
+# Maintainer: XZS <d dot f dot fischer at web dot de>
+# This PKGBUILD is maintained on GitHub <https://github.com/dffischer/gnome-shell-extensions>.
+# You may find it convenient to file issues and pull requests there.
+
+pkgname="gnome-shell-extension-activities-config"
+pkgdesc="Configure the Activities Button with the Activities Configurator Extension and the Gnome Shell Extension Preferences Tool."
+pkgver=36
+pkgrel=1
+arch=(any)
+url="https://extensions.gnome.org/extension/358/activities-configurator/"
+license=(GPLv2)
+depends=('gnome-shell>=3.8')
+source=("extension.html::$url"
+ 'archlinux-logo-gray-scalable.svg')
+md5sums=('SKIP'
+ '69063bc3433d20d9de0f9dce2269186b')
+
+find_version() {
+ if [ ! -d version ]; then
+ grep -Po '(?<=data-svm=").*(?=")' extension.html | # extract version information
+ sed 's/&quot;/"/g' | # unescape quotes
+ sed 's/[{ ,]*"[[:digit:].]\+": {"pk": \([[:digit:]]\+\), "version": \([[:digit:]]\+\)}[ ,}]*/\2 \1\n/g' | # list one version per line
+ sort -nr | head -n1 | tr ' ' '\n' > version # get newest and write
+ fi
+}
+
+pkgver() {
+ find_version
+ head -n1 version
+}
+
+prepare() {
+ find_version
+ local name=$(tail -n1 version).shell-extension.zip
+ if [ ! -f $name ]
+ then
+ curl -LO "https://extensions.gnome.org/review/download/$name"
+ unzip -od extension $name
+ fi
+}
+
+build() {
+ cd extension
+ sed -i '/^const ICON_FILE =.*$/{
+ s|face-smile-3.svg|archlinux-logo-gray-scalable.svg|;
+ s|//.*|// Arch Linux Icon.|}' keys.js
+ cp --remove-destination ../archlinux-logo-gray-scalable.svg archlinux-logo-gray-scalable.svg
+}
+
+package() {
+ for function in $(declare -F | grep -Po 'package_[[:digit:]]+[[:alpha:]_]*$')
+ do
+ $function
+ done
+}
+package_01_locate() {
+ msg2 'Locating extension...'
+ cd "$(dirname $(find -name 'metadata.json' -print -quit))"
+ extname=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
+ destdir="$pkgdir/usr/share/gnome-shell/extensions/$extname"
+}
+
+package_02_install() {
+ msg2 'Installing extension code...'
+ find -maxdepth 1 \( -iname '*.js*' -or -iname '*.css' -or -iname '*.ui' \) -exec install -Dm644 -t "$destdir" '{}' +
+}
+if [ -z "$install" ]
+then
+ install=gschemas.install
+fi
+
+package_10_schemas() {
+ msg2 'Installing schemas...'
+ find -name '*.xml' -exec install -Dm644 -t "$pkgdir/usr/share/glib-2.0/schemas" '{}' +
+}
+package_10_locale() {
+ msg2 'Installing translations...'
+ (
+ cd locale
+ for locale in */
+ do
+ install -Dm644 -t "$pkgdir/usr/share/locale/$locale/LC_MESSAGES" "$locale/LC_MESSAGES"/*.mo
+ done
+ )
+}
+depends+=(gnome-shell-extensions)
+
+package_03_unify_conveniencejs() {
+ ln -fs \
+ ../user-theme@gnome-shell-extensions.gcampax.github.com/convenience.js \
+ "$destdir/convenience.js"
+}
+
+package_09_icon() {
+ install -Dm644 *.svg "$destdir"
+}
diff --git a/archlinux-logo-gray-scalable.svg b/archlinux-logo-gray-scalable.svg
new file mode 100644
index 000000000000..9289a334740f
--- /dev/null
+++ b/archlinux-logo-gray-scalable.svg
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.0"
+ width="199.8"
+ height="199.8"
+ id="svg2424"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="archlinux-logo-white-scalable.svg">
+ <metadata
+ id="metadata3114">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1920"
+ inkscape:window-height="1053"
+ id="namedview3112"
+ showgrid="false"
+ showguides="true"
+ inkscape:guide-bbox="true"
+ units="in"
+ inkscape:zoom="1.5433333"
+ inkscape:cx="172.88915"
+ inkscape:cy="90.899671"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2424" />
+ <defs
+ id="defs2426">
+ <linearGradient
+ x1="112.49854"
+ y1="6.1372099"
+ x2="112.49853"
+ y2="129.3468"
+ id="path1082_2_"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(287,-83)">
+ <stop
+ id="stop193"
+ style="stop-color:#ffffff;stop-opacity:0"
+ offset="0" />
+ <stop
+ id="stop195"
+ style="stop-color:#ffffff;stop-opacity:0.27450982"
+ offset="1" />
+ <midPointStop
+ offset="0"
+ style="stop-color:#FFFFFF"
+ id="midPointStop197" />
+ <midPointStop
+ offset="0.5"
+ style="stop-color:#FFFFFF"
+ id="midPointStop199" />
+ <midPointStop
+ offset="1"
+ style="stop-color:#000000"
+ id="midPointStop201" />
+ </linearGradient>
+ <linearGradient
+ x1="541.33502"
+ y1="104.50665"
+ x2="606.91248"
+ y2="303.14029"
+ id="linearGradient2544"
+ xlink:href="#path1082_2_"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(-0.3937741,0,0,0.393752,357.51969,122.00151)" />
+ <linearGradient
+ id="linearGradient3388">
+ <stop
+ id="stop3390"
+ style="stop-color:#000000;stop-opacity:0"
+ offset="0" />
+ <stop
+ id="stop3392"
+ style="stop-color:#000000;stop-opacity:0.37113401"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ x1="490.72305"
+ y1="237.72447"
+ x2="490.72305"
+ y2="183.9644"
+ id="linearGradient4416"
+ xlink:href="#linearGradient3388"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.749107,0,0,0.749107,-35.459862,91.44108)" />
+ </defs>
+ <g
+ style="fill:#cccccc;fill-opacity:1"
+ id="g2424"
+ transform="matrix(0.8746356,0,0,0.8746356,-30.402139,-106.2122)">
+ <g
+ style="fill:#cccccc;fill-opacity:1"
+ id="g2809"
+ transform="matrix(0.6378586,0,0,0.6378586,36.486487,2.17139)" />
+ <g
+ style="fill:#cccccc;fill-opacity:1;stroke:none"
+ id="g5326"
+ transform="matrix(0.9443373,0,0.01336345,0.9443373,78.345657,-412.48879)" />
+ <path
+ inkscape:connector-curvature="0"
+ style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ id="path2518"
+ transform="matrix(1.1433333,0,0,1.1433333,22.920168,121.64318)"
+ d="m 105.8125,16.625 c -7.39687,18.135158 -11.858304,29.997682 -20.09375,47.59375 5.04936,5.35232 11.247211,11.585364 21.3125,18.625 C 96.210077,78.390904 88.828713,73.920352 83.3125,69.28125 72.7727,91.274163 56.259864,122.60209 22.75,182.8125 49.087628,167.60733 69.504089,158.23318 88.53125,154.65625 87.714216,151.1422 87.2497,147.34107 87.28125,143.375 l 0.03125,-0.84375 c 0.417917,-16.87382 9.195665,-29.84979 19.59375,-28.96875 10.39809,0.88104 18.48041,15.28242 18.0625,32.15625 -0.0786,3.17512 -0.43674,6.22955 -1.0625,9.0625 18.82058,3.68164 39.01873,13.03179 65,28.03125 -5.123,-9.4318 -9.69572,-17.93388 -14.0625,-26.03125 -6.87839,-5.33121 -14.05289,-12.2698 -28.6875,-19.78125 10.05899,2.61375 17.2611,5.62932 22.875,9 C 124.63297,63.338161 121.03766,52.354109 105.8125,16.625 z" />
+ <g
+ style="font-size:8.44138240999999923px;font-style:normal;font-weight:normal;fill:#cccccc;fill-opacity:1;stroke:none;font-family:DejaVu Sans Mono"
+ id="text2634" />
+ <g
+ style="font-size:8.25130367000000042px;font-style:normal;font-weight:normal;fill:#cccccc;fill-opacity:1;stroke:none;font-family:DejaVu Sans Mono"
+ id="text2638">
+ <path
+ inkscape:connector-curvature="0"
+ style="fill:#cccccc;fill-opacity:1"
+ id="path7853"
+ d="m 239.84053,313.69965 0,-5.20945 -1.94598,0 0,-0.697 4.68164,0 0,0.697 -1.95404,0 0,5.20945 -0.78162,0" />
+ <path
+ inkscape:connector-curvature="0"
+ style="fill:#cccccc;fill-opacity:1"
+ id="path7855"
+ d="m 243.39004,313.69965 0,-5.90645 1.17646,0 1.39805,4.18205 c 0.12892,0.38947 0.22293,0.6809 0.28202,0.87429 0.0671,-0.21488 0.1719,-0.53048 0.31426,-0.94681 l 1.41417,-4.10953 1.05155,0 0,5.90645 -0.75341,0 0,-4.94353 -1.71634,4.94353 -0.70506,0 -1.70828,-5.02814 0,5.02814 -0.75342,0" />
+ </g>
+ </g>
+</svg>
diff --git a/gschemas.install b/gschemas.install
new file mode 100644
index 000000000000..863897ad5436
--- /dev/null
+++ b/gschemas.install
@@ -0,0 +1,20 @@
+post_install() {
+ instruct
+ echo "and enable the extension with gnome-tweak-tool."
+}
+
+post_upgrade() {
+ instruct
+ echo "for the changes to have an effect."
+}
+
+post_remove() {
+ glib-compile-schemas usr/share/glib-2.0/schemas/
+}
+
+instruct() {
+ post_remove
+ echo "Don't forget to restart GNOME Shell ([Alt]+[F2], r)"
+}
+
+# vim: ts=2 sw=2 et: