Implement _enable_check
option
Signed-off-by: Mingi Sung <FiestaLake@protonmail.com>
This commit is contained in:
parent
2c5cc4e9d1
commit
bd8a170cd7
2 changed files with 22 additions and 13 deletions
3
.SRCINFO
3
.SRCINFO
|
@ -1,13 +1,12 @@
|
||||||
pkgbase = gnome-shell-performance
|
pkgbase = gnome-shell-performance
|
||||||
pkgdesc = Next generation desktop shell | Attempts to improve performances with non-upstreamed merge-requests and frequent stable branch resync
|
pkgdesc = Next generation desktop shell | Attempts to improve performances with non-upstreamed merge-requests and frequent stable branch resync
|
||||||
pkgver = 43.1+28+g9956f5ea5
|
pkgver = 43.1+28+g9956f5ea5
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
epoch = 1
|
epoch = 1
|
||||||
url = https://wiki.gnome.org/Projects/GnomeShell
|
url = https://wiki.gnome.org/Projects/GnomeShell
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
groups = gnome
|
groups = gnome
|
||||||
license = GPL
|
license = GPL
|
||||||
checkdepends = xorg-server-xvfb
|
|
||||||
makedepends = gtk-doc
|
makedepends = gtk-doc
|
||||||
makedepends = gnome-control-center
|
makedepends = gnome-control-center
|
||||||
makedepends = evolution-data-server
|
makedepends = evolution-data-server
|
||||||
|
|
32
PKGBUILD
32
PKGBUILD
|
@ -9,18 +9,21 @@
|
||||||
# Contributor: Flamelab <panosfilip@gmail.com
|
# Contributor: Flamelab <panosfilip@gmail.com
|
||||||
|
|
||||||
|
|
||||||
### MERGE REQUESTS SELECTION
|
### PACKAGE OPTIONS
|
||||||
|
## MERGE REQUESTS SELECTION
|
||||||
# available MR: ()
|
# Merge Requests List: ()
|
||||||
_merge_requests_to_use=()
|
_merge_requests_to_use=()
|
||||||
|
|
||||||
### IMPORTANT: Do no edit below this line unless you know what you're doing
|
## Enable the `check()` operation (Disabled if not set)
|
||||||
|
: "${_enable_check:=""}"
|
||||||
|
|
||||||
|
|
||||||
|
### IMPORTANT: Do no edit below this line unless you know what you're doing
|
||||||
|
|
||||||
pkgname=gnome-shell-performance
|
pkgname=gnome-shell-performance
|
||||||
_pkgname=gnome-shell
|
_pkgname=gnome-shell
|
||||||
pkgver=43.1+28+g9956f5ea5
|
pkgver=43.1+28+g9956f5ea5
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="Next generation desktop shell | Attempts to improve performances with non-upstreamed merge-requests and frequent stable branch resync"
|
pkgdesc="Next generation desktop shell | Attempts to improve performances with non-upstreamed merge-requests and frequent stable branch resync"
|
||||||
url="https://wiki.gnome.org/Projects/GnomeShell"
|
url="https://wiki.gnome.org/Projects/GnomeShell"
|
||||||
|
@ -32,7 +35,9 @@ depends=(accountsservice gcr-4 gjs upower gnome-session gtk4
|
||||||
gnome-disk-utility libsoup3 libgweather-4)
|
gnome-disk-utility libsoup3 libgweather-4)
|
||||||
makedepends=(gtk-doc gnome-control-center evolution-data-server
|
makedepends=(gtk-doc gnome-control-center evolution-data-server
|
||||||
gobject-introspection git meson sassc asciidoc bash-completion)
|
gobject-introspection git meson sassc asciidoc bash-completion)
|
||||||
checkdepends=(xorg-server-xvfb)
|
if [ -n "$_enable_check" ]; then
|
||||||
|
checkdepends=(xorg-server-xvfb)
|
||||||
|
fi
|
||||||
optdepends=('gnome-control-center: System settings'
|
optdepends=('gnome-control-center: System settings'
|
||||||
'evolution-data-server: Evolution calendar integration'
|
'evolution-data-server: Evolution calendar integration'
|
||||||
'gst-plugins-good: Screen recording'
|
'gst-plugins-good: Screen recording'
|
||||||
|
@ -128,7 +133,10 @@ build() {
|
||||||
CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
|
CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
|
||||||
LDFLAGS+=" -Wl,-Bsymbolic-functions"
|
LDFLAGS+=" -Wl,-Bsymbolic-functions"
|
||||||
|
|
||||||
arch-meson $_pkgname build -D gtk_doc=true
|
arch-meson $_pkgname build \
|
||||||
|
-D gtk_doc=true \
|
||||||
|
-D tests=$(if [ -n "$_enable_check" ]; then echo "true"; else echo "false"; fi)
|
||||||
|
|
||||||
meson compile -C build
|
meson compile -C build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,10 +147,12 @@ _check() (
|
||||||
meson test -C build --print-errorlogs
|
meson test -C build --print-errorlogs
|
||||||
)
|
)
|
||||||
|
|
||||||
check() {
|
if [ -n "$_enable_check" ]; then
|
||||||
dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
|
check() {
|
||||||
bash -c "$(declare -f _check); _check"
|
dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
|
||||||
}
|
bash -c "$(declare -f _check); _check"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
depends+=(libmutter-11.so)
|
depends+=(libmutter-11.so)
|
||||||
|
|
Loading…
Reference in a new issue