waycrate / xdg-desktop-portal-luminous

A xdg-desktop-portal for wlroots based compositors implementing zwlr_screencopy. Written by @decodetalkers
GNU General Public License v3.0
32 stars 5 forks source link

pkgbuild fix #19

Closed Decodetalkers closed 7 months ago

Decodetalkers commented 7 months ago
    |
124 | / cpp_class!(
125 | |     /// Wrapper around [`QColor`][class] class.
126 | |     ///
127 | |     /// [class]: https://doc.qt.io/qt-5/qcolor.html
128 | |     #[derive(Default, Clone, Copy, PartialEq)]
129 | |     pub unsafe struct QColor as "QColor"
130 | | );
    | |_^ the trait `CppTrait` is not implemented for `QColor`
    |
    = note: this error originates in the macro `$crate::__cpp_class_internal` which comes from the expansion of the macro `cpp_class` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.

in the environment of pkgbuild, slint will never be built

_pkgname=xdg-desktop-portal-luminous
pkgname="${_pkgname}-git"
pkgver=r78.7118cbe
pkgrel=1
url='https://github.com/waycrate/xdg-desktop-portal-luminous'
pkgdesc='xdg-desktop-portal backend for wlroots based compositors, providing screenshot and screencast'
arch=('x86_64' 'aarch64')
license=('BSD-2-Clause')
depends=('xdg-desktop-portal' 'slurp' 'qt5-base')
provides=("xdg-desktop-portal-impl")
makedepends=('git' 'ninja' 'meson' 'rust' 'clang' 'qt5-base')
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')

build() {
  cd "${_pkgname}"
  meson setup build \
    -Dprefix=/usr \
    -Dlibexecdir=lib \
    -Dbuildtype=release
  meson compile -C build
}

package() {
  cd "${_pkgname}"
  DESTDIR="${pkgdir}" ninja -C build install
}

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
Decodetalkers commented 7 months ago

I don't know what the problem is the pkgbuild, before it works. outside the pkgbuild, the target can be built easily, but in the environment of pkgbuild, it panic

Decodetalkers commented 7 months ago

options+=(!lto) fixed