summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Milette2017-06-13 17:08:00 -0400
committerCharles Milette2017-06-13 17:08:00 -0400
commit1e98c88118d176c5c8642bb9cd77142d8636ecf4 (patch)
tree386f747c1dafe393f55cc28046b8e432ff4db231
downloadaur-1e98c88118d176c5c8642bb9cd77142d8636ecf4.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD28
-rw-r--r--gschemas.install30
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7ed1ac0c406
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = gnome-shell-extension-totp-cliboard-git
+ pkgdesc = Gnome Shell extension for TOTP
+ pkgver = r11.3c798d2
+ pkgrel = 1
+ url = https://github.com/mardiros/TOTP_Clipboard-guillaume.gauvr.it
+ install = gschemas.install
+ arch = any
+ license = unknown
+ makedepends = git
+ depends = gnome-shell
+ source = git+https://github.com/mardiros/TOTP_Clipboard-guillaume.gauvr.it.git
+ md5sums = SKIP
+
+pkgname = gnome-shell-extension-totp-cliboard-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3fbce68692e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Charles Milette <charles.milette@gmail.com>
+
+_gitname=TOTP_Clipboard-guillaume.gauvr.it
+pkgname=gnome-shell-extension-totp-cliboard-git
+pkgver=r11.3c798d2
+pkgrel=1
+pkgdesc="Gnome Shell extension for TOTP"
+arch=('any')
+url="https://github.com/mardiros/$_gitname"
+license=('unknown')
+depends=('gnome-shell')
+makedepends=('git')
+install='gschemas.install'
+source=("git+https://github.com/mardiros/$_gitname.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "${srcdir}/${_gitname}/"
+
+ for i in $(find -type f); do
+ install -Dm 644 "$i" "${pkgdir}/usr/share/gnome-shell/extensions/TOTP_Clipboard@guillaume.gauvr.it/${i}"
+ done
+}
diff --git a/gschemas.install b/gschemas.install
new file mode 100644
index 00000000000..7f4546e4501
--- /dev/null
+++ b/gschemas.install
@@ -0,0 +1,30 @@
+post_install() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
+ instructions_install
+}
+
+post_upgrade() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
+ instructions_upgrade
+}
+
+post_remove() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
+}
+
+instructions_install() {
+ /bin/cat << EOF
+
+Restart GNOME Shell ([Alt]+[F2], r).
+Activate the extension with gnome-tweak-tool.
+
+EOF
+}
+
+instructions_upgrade() {
+ /bin/cat << EOF
+
+Restart GNOME Shell ([Alt]+[F2], r) to load the upgraded extension.
+
+EOF
+}