diff options
author | Mark Wagie | 2021-06-01 17:39:35 -0600 |
---|---|---|
committer | Mark Wagie | 2021-06-01 17:39:35 -0600 |
commit | b82df79eb54f7a880f4c850fba8825bf62ee2ac5 (patch) | |
tree | 88d42d8f5e8bacb617baf904daeab9e343733c19 | |
parent | 591afb897b1387b02ffb46a38263082f1674c3c4 (diff) | |
download | aur-b82df79eb54f7a880f4c850fba8825bf62ee2ac5.tar.gz |
GNOME 40/GTK4 support
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 72 | ||||
-rw-r--r-- | gschemas.install | 20 |
4 files changed, 38 insertions, 76 deletions
@@ -1,21 +1,20 @@ pkgbase = gnome-shell-extension-gamemode-git pkgdesc = GNOME Shell extension for Feral Interactive's GameMode - pkgver = 4.r5.g03d73fb - pkgrel = 1 + pkgver = 4.r7.gac23266 + pkgrel = 2 url = https://github.com/gicmo/gamemode-extension - install = gschemas.install arch = any license = GPL2 makedepends = meson - makedepends = intltool - makedepends = gamemode makedepends = git + depends = gamemode depends = gnome-shell - optdepends = lib32-gamemode: support for 32-bit applications - provides = gnome-shell-extension-gamemode=4.r5.g03d73fb + provides = gnome-shell-extension-gamemode conflicts = gnome-shell-extension-gamemode - source = gnome-shell-extension-gamemode::git+https://github.com/gicmo/gamemode-extension + source = git+https://github.com/gicmo/gamemode-extension.git + source = https://github.com/gicmo/gamemode-extension/pull/38.patch sha256sums = SKIP + sha256sums = c49558889af2f2f991abe9c7c8d48783f7a719a26e1e72c4751dcbe787794f86 pkgname = gnome-shell-extension-gamemode-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4dab8d6386e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO @@ -1,62 +1,38 @@ -# Maintainer: Luke Street <luke.street@encounterpc.com> - +# Maintainer: Mark Wagie <mark dot wagie at tutanota.com> +# Contributor: Luke Street <luke.street@encounterpc.com> pkgname=gnome-shell-extension-gamemode-git -pkgver=4.r5.g03d73fb -pkgrel=1 +pkgver=4.r7.gac23266 +pkgrel=2 pkgdesc="GNOME Shell extension for Feral Interactive's GameMode" arch=('any') -url='https://github.com/gicmo/gamemode-extension' +url="https://github.com/gicmo/gamemode-extension" license=('GPL2') -makedepends=('meson' 'intltool' 'gamemode') -optdepends=('lib32-gamemode: support for 32-bit applications') -install=gschemas.install +depends=('gamemode' 'gnome-shell') +makedepends=('meson' 'git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=('git+https://github.com/gicmo/gamemode-extension.git' + 'https://github.com/gicmo/gamemode-extension/pull/38.patch') +sha256sums=('SKIP' + 'c49558889af2f2f991abe9c7c8d48783f7a719a26e1e72c4751dcbe787794f86') -makedepends+=('git') -source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}") -for integ in $(get_integlist) -do - typeset -n array="${integ}sums" - array+=('SKIP') -done -provides+=("$_gitname=$pkgver") -conflicts+=("$_gitname") pkgver() { - cd ${_gitname:-$pkgname} - git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' + cd $srcdir/gamemode-extension + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -build() { - cd "$_gitname" - rm -rf build - meson build --prefix='/usr' -} +prepare() { + cd $srcdir/gamemode-extension -package() { - for function in $(declare -F | grep -Po 'package_[[:digit:]]+[[:alpha:]_]*$') - do - $function - done + # support for gnome-shell40/gtk4 + patch -Np1 -i $srcdir/38.patch } -package_01_ninja_install() { - cd "$_gitname" - DESTDIR="$pkgdir" ninja -C build install +build() { + arch-meson gamemode-extension build + meson compile -C build } -depends[125]=gnome-shell - -package_20_version() { - local compatibles=($(\ - find -path ./pkg -type d -prune -o \ - -name metadata.json -exec cat '{}' \; | \ - tr -d '\n' | grep -Po '(?<="shell-version": \[)[^\[\]]*(?=\])' | \ - tr '\n," ' '\n' | sed 's/3\.//g;/^$/d' | sort -n -t. -k 1,1)) - depends+=("gnome-shell>=3.${compatibles[0]}") - local max="${compatibles[-1]}" - if [ "$max" != $( - gnome-shell --version | grep -Po '(?<=GNOME Shell 3\.)[[:digit:]]+' - ) ]; then - depends+=("gnome-shell<3.$((${max%%.*} + 1))") - fi - unset depends[125] +package() { + DESTDIR="$pkgdir" meson install -C build } diff --git a/gschemas.install b/gschemas.install deleted file mode 100644 index 863897ad5436..000000000000 --- a/gschemas.install +++ /dev/null @@ -1,20 +0,0 @@ -post_install() { - instruct - echo "and enable the extension with gnome-tweak-tool." -} - -post_upgrade() { - instruct - echo "for the changes to have an effect." -} - -post_remove() { - glib-compile-schemas usr/share/glib-2.0/schemas/ -} - -instruct() { - post_remove - echo "Don't forget to restart GNOME Shell ([Alt]+[F2], r)" -} - -# vim: ts=2 sw=2 et: |