7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Template file for 'gnome-desktop'
|
|
pkgname=gnome-desktop
|
|
version=40.2
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dgnome_distributor=VoidLinux -Dudev=enabled -Dsystemd=disabled
|
|
-Dintrospection=$(vopt_if gir true false)"
|
|
hostmakedepends="gettext itstool pkg-config glib-devel"
|
|
makedepends="eudev-libudev-devel gsettings-desktop-schemas-devel gtk+3-devel
|
|
iso-codes libglib-devel libseccomp-devel libX11-devel libXext-devel
|
|
libxkbfile-devel libXrandr-devel gdk-pixbuf-devel"
|
|
depends="bubblewrap gsettings-desktop-schemas iso-codes xkeyboard-config"
|
|
short_desc="GNOME desktop management utilities"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/gnome-desktop"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=02dd6e5860e90395b5d88745ee30239a919285afbb7a22cf17e3be25e9abfbf6
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
# needs X
|
|
do_check() {
|
|
:
|
|
}
|
|
|
|
gnome-desktop-devel_package() {
|
|
depends="gtk+3-devel gsettings-desktop-schemas-devel>=3.12
|
|
gdk-pixbuf-devel iso-codes libX11-devel libglib-devel libseccomp-devel
|
|
libxkbfile-devel xkeyboard-config eudev-libudev-devel
|
|
${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|