diff options
author | Byeonghoon Yoo | 2019-07-16 19:10:38 +0900 |
---|---|---|
committer | Byeonghoon Yoo | 2019-07-16 19:10:38 +0900 |
commit | 1e10829d7f646fab7ed011c7fa323195cfae69e3 (patch) | |
tree | e8cdbb97846ad2fc78a9757091b864f854a559bd | |
parent | d58f7508250658202b666835696bda85d50cf634 (diff) | |
download | aur-1e10829d7f646fab7ed011c7fa323195cfae69e3.tar.gz |
release 14
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 21 insertions, 18 deletions
@@ -1,15 +1,16 @@ 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 + pkgver = 14 pkgrel = 1 - url = https://github.com/ai/autohide-battery.git + url = https://github.com/ai/autohide-battery install = gschemas.install arch = any license = MIT makedepends = git depends = gnome-shell - source = git+https://github.com/ai/autohide-battery.git - md5sums = SKIP + conflicts = gnome-shell-extension-autohide-battery-git + source = https://github.com/ai/autohide-battery/archive/14.tar.gz + md5sums = 3dcfae682d8bf51cbfa387e29bf9b194 pkgname = gnome-shell-extension-autohide-battery @@ -1,27 +1,29 @@ -# Maintainer: Michal DonĂ¡t <michal at donat dot cz> -pkgname=gnome-shell-extension-autohide-battery +# Maintainer: Byeonghoon Yoo <bh322yoo@gmail.com> + _pkgname=autohide-battery -pkgver=r33.8cc4bb1 +pkgname=gnome-shell-extension-${_pkgname} +pkgver=14 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" +url="https://github.com/ai/autohide-battery" license=('MIT') depends=('gnome-shell') makedepends=('git') +conflicts=('gnome-shell-extension-autohide-battery-git') install='gschemas.install' -source=("git+https://github.com/ai/autohide-battery.git") -md5sums=('SKIP') +source=(https://github.com/ai/${_pkgname}/archive/${pkgver}.tar.gz) +md5sums=('3dcfae682d8bf51cbfa387e29bf9b194') -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" + cd "${_pkgname}-${pkgver}" - for i in $(find -type f); do - install -Dm 644 "$i" "${pkgdir}/usr/share/gnome-shell/extensions/autohide-battery@sitnik.ru/${i}" - done + local _uuid="autohide-battery@sitnik.ru" + local _destdir="$pkgdir/usr/share/gnome-shell/extensions/$_uuid" + + find . -type f -name "*.js" -exec install -Dm 644 {} ${_destdir}/{} \; + install -Dm 644 metadata.json ${_destdir}; } + +# vim:set ts=2 sw=2 et: |