blob: 9fff21e709dbcd83dc873abe9296a3f0c49f7c58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Michal DonĂ¡t <aur at donat dot cz>
pkgname=gnome-shell-extension-autohide-battery-git
_pkgname=autohide-battery
pkgver=r285.935aa8c
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' 'unzip')
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)"
}
build() {
cd "${srcdir}/${_pkgname}"
make build
glib-compile-schemas schemas
}
package() {
targetdir="${pkgdir}/usr/share/gnome-shell/extensions/autohide-battery@sitnik.ru/"
install -d "${targetdir}"
unzip -d "${targetdir}" "${srcdir}/${_pkgname}/autohide-battery@sitnik.ru.shell-extension.zip"
install "${srcdir}/${_pkgname}/schemas/gschemas.compiled" "${targetdir}/schemas"
}
|