diff options
author | Michal Donat | 2016-11-20 19:23:15 +0100 |
---|---|---|
committer | Michal Donat | 2016-11-20 19:23:15 +0100 |
commit | d58f7508250658202b666835696bda85d50cf634 (patch) | |
tree | f3579f661145f5b2fbfd3ea692912f366209f91e | |
download | aur-d58f7508250658202b666835696bda85d50cf634.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | gschemas.install | 30 |
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..135fbcfbeb7b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = gnome-shell-extension-autohide-battery + pkgdesc = GNOME Shell extension to hide battery icon, if battery is fully charged and AC is connected + pkgver = r33.8cc4bb1 + pkgrel = 1 + url = https://github.com/ai/autohide-battery.git + install = gschemas.install + arch = any + license = MIT + makedepends = git + depends = gnome-shell + source = git+https://github.com/ai/autohide-battery.git + md5sums = SKIP + +pkgname = gnome-shell-extension-autohide-battery + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..32baa3b60cf0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Michal DonĂ¡t <michal at donat dot cz> +pkgname=gnome-shell-extension-autohide-battery +_pkgname=autohide-battery +pkgver=r33.8cc4bb1 +pkgrel=1 +pkgdesc="GNOME Shell extension to hide battery icon, if battery is fully charged and AC is connected" +arch=('any') +url="https://github.com/ai/autohide-battery.git" +license=('MIT') +depends=('gnome-shell') +makedepends=('git') +install='gschemas.install' +source=("git+https://github.com/ai/autohide-battery.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "${srcdir}/${_pkgname}/autohide-battery@sitnik.ru" + + for i in $(find -type f); do + install -Dm 644 "$i" "${pkgdir}/usr/share/gnome-shell/extensions/autohide-battery@sitnik.ru/${i}" + done +} diff --git a/gschemas.install b/gschemas.install new file mode 100644 index 000000000000..7f4546e45017 --- /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 +} |