blob: 30466b4aea2a8a64083a293b96e3640bde82a76d (
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
34
35
|
# Maintainer: Darkest Medium <darkestmedium@gmail.com>
pkgname=gnome-shell-extension-launch-new-instance
extensionname=launch-new-instance
pkgver=47.0.74.gfde934f
pkgrel=1
pkgdesc="Changes application icons to always launch a new instance when activated."
arch=("any")
url="https://extensions.gnome.org/extension/600/launch-new-instance/"
license=("GPL-2.0-or-later")
depends=("gnome-shell")
makedepends=("git" "glib2" "meson" "ninja")
source=("git+https://gitlab.gnome.org/GNOME/gnome-shell-extensions.git")
sha256sums=("SKIP")
# Automatically update pkgver based on latest Git commit
pkgver() {
cd "${srcdir}/gnome-shell-extensions"
git describe --tags | sed 's/^v//;s/-/./g'
}
build() {
cd "${srcdir}/gnome-shell-extensions"
# Configure meson to build only the desired extension
meson setup build --prefix=/usr \
-Denable_extensions="${extensionname}"
meson compile -C build
}
package() {
cd "${srcdir}/gnome-shell-extensions"
meson install -C build --destdir "${pkgdir}"
# Remove shared localization files to avoid conflicts with other shell-extensions
rm -rf "${pkgdir}/usr/share/locale"/*
}
|