blob: 787833ba9c336f532cb63eb680e60eda4b0e4e23 (
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
32
33
|
# Maintainer: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
# Contributor: skrewball <aur at joickle dot com>
# Contributor: Michael Wendland <dev at michiwend dot com>
_pkgname=arch-update
pkgname=gnome-shell-extension-arch-update
pkgver=64
pkgrel=1
pkgdesc="Convenient indicator for Arch Linux updates in GNOME Shell."
arch=('any')
url="https://github.com/RaphaelRochet/arch-update"
license=('GPL-3.0-or-later')
depends=('fakeroot' 'gnome-shell' 'pacman-contrib')
conflicts=('gnome-shell-extensions-git')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('8e8244aa685ecd70d1d3eec67b285209627f899b197c1128f13e78a98934c45e')
package() {
cd "${_pkgname}-${pkgver}"
local _extname=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
local _destdir="${pkgdir}/usr/share/gnome-shell/extensions/${_extname}"
install -Dm644 -t "${_destdir}" metadata.json *.js *.xml *.css
cp -r --no-preserve=ownership,mode icons "${_destdir}"
install -Dm644 -t "${pkgdir}/usr/share/glib-2.0/schemas/" schemas/*.xml
cd locale
for locale in */
do
install -Dm644 -t "${pkgdir}/usr/share/locale/${locale}/LC_MESSAGES" "${locale}/LC_MESSAGES"/*.mo
done
}
|