# Maintainer: Jesus E. pkgname=gsettings-desktop-schemas pkgver=3.38.0 _debver=$pkgver _debrel=2 pkgrel=2 pkgdesc="Shared GSettings schemas for the desktop" arch=(any) url='https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas' license=('LGPL-2.1') depends=('glib2' 'cantarell-fonts') makedepends=('gobject-introspection' 'meson' 'quilt') source=("https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz" "https://deb.debian.org/debian/pool/main/g/gsettings-desktop-schemas/gsettings-desktop-schemas_${_debver}-${_debrel}.debian.tar.xz") sha512sums=('5af7da90b8e7eec1c98e9e44653955f2882961dd9b5e2bf00e4eeb9f4f1149ae5171c600d457c6ab9c7482471c1a0e98f92f645a7ee7298e1b843c608f660756' '849e446c51c721ba5eada6a4ab7512eabdb0d3e3e690119a6f3fc0c0238a09326a36aad84a7d20f94ce81660abe18ae8ab059284cb6339ee6f6636adca650daa') prepare() { cd $pkgname-$pkgver if [[ ${pkgver%.*} = ${_debver%.*} ]]; then # Debian patches export QUILT_PATCHES=debian/patches export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index' export QUILT_DIFF_ARGS='--no-timestamps' mv "$srcdir"/debian . quilt push -av fi } build() { hyperbola-meson $pkgname-$pkgver build ninja -C build } package() { DESTDIR="$pkgdir" meson install -C build install -Dm644 $pkgname-$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING }