# Maintainer: grufo # Contributor: somepaulo # Contributor: Massimo Branchini _extname='desktop-icons' _uuid="${_extname}@csoriano" pkgname="gnome-shell-extension-${_extname}" pkgver='r391.3b8ca0a' pkgrel=1 pkgdesc='Add icons to the desktop' arch=('x86_64' 'i686') url="https://extensions.gnome.org/extension/1465/${_extname}/" license=('GPL3') depends=('gnome-shell') makedepends=('git' 'meson' 'glib2') options=('!strip') source=("git+https://gitlab.gnome.org/World/ShellExtensions/${_extname}.git") md5sums=('SKIP') pkgver() { cd "${_extname}" printf "'r%s.%s'" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { install -dm755 "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" # taken from export-zip.sh local _repodir="${srcdir}/${_extname}" local _build_dir="${_repodir}/builddir" local _local_prefix="${_repodir}/${_uuid}" local _extension_dir="${_local_prefix}/share/gnome-shell/extensions/${_uuid}" local _schemadir="${_local_prefix}/share/glib-2.0/schemas" meson --prefix="${_local_prefix}" --localedir=locale "${_build_dir}" "${_repodir}" ninja -C "${_build_dir}" install cd "${_local_prefix}" mkdir schemas cp "${_schemadir}"/*.xml schemas/ glib-compile-schemas schemas/ cp -r "${_extension_dir}"/* . cp -dpr --no-preserve=ownership {*.js,*.css,*.json,locale,schemas} "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" }