diff options
author | Sebastian Wiesner | 2023-10-11 19:11:29 +0200 |
---|---|---|
committer | Sebastian Wiesner | 2023-10-11 19:11:29 +0200 |
commit | 7137349b547adef329432b46b59d2132c2520653 (patch) | |
tree | 75ded026786348d435b7bc2fe6e2b5fd646eb4b7 | |
parent | 5b20217d6a5dd9dbbab14dea287c737d490153f3 (diff) | |
download | aur-gnome-shell-extension-caffeine.tar.gz |
upgpkg: gnome-shell-extension-caffeine 1:50-4
Move locales and settings schema to corresponding system directories.
Update maintainer.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 29 |
3 files changed, 27 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = gnome-shell-extension-caffeine pkgdesc = Extension for GNOME shell to disable screensaver and auto suspend pkgver = 50 - pkgrel = 3 + pkgrel = 4 epoch = 1 url = https://github.com/eonpatapon/gnome-shell-extension-caffeine arch = any diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..40ff3d8eb413 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/*.tar.gz +/*.log @@ -1,9 +1,9 @@ -# Maintainer: Robin Candau <antiz@archlinux.org> +# Maintainer: Sebastian Wiesner <sebastian@swsnr.de> +# Contributor: Robin Candau <antiz@archlinux.org> pkgname=gnome-shell-extension-caffeine -_uuid=caffeine@patapon.info pkgver=50 -pkgrel=3 +pkgrel=4 epoch=1 pkgdesc='Extension for GNOME shell to disable screensaver and auto suspend' arch=('any') @@ -20,8 +20,27 @@ build() { package() { cd "${pkgname}-${pkgver}" - install -d "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" - bsdtar -xvf "${_uuid}.zip" -C "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" --no-same-owner + + local _uuid=caffeine@patapon.info + + install -d \ + "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" \ + "${pkgdir}/usr/share/glib-2.0/" + + # Extract extension artifact to system extension directory. + bsdtar -xvf "${_uuid}.zip" \ + -C "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" \ + --no-same-owner + + # Move settings schema to system schema dir and remove compiled schema (a + # pacman hook generates those) + mv "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/schemas" \ + "${pkgdir}/usr/share/glib-2.0/" + rm "${pkgdir}/usr/share/glib-2.0/schemas/gschemas.compiled" + + # Move local to system locale directory + mv "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/locale" \ + "${pkgdir}/usr/share" install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" } |