# Maintainer: Vinícius dos Santos Oliveira pkgname=way-cooler-git pkgver=v0.8.0.r246.gccf86d7 pkgrel=1 epoch=1 pkgdesc="Customizeable Wayland compositor written in Rust" arch=('i686' 'x86_64') url="https://github.com/Immington-Industries/way-cooler" license=('MIT') depends=('wlroots-git' 'rust') makedepends=('python' 'cargo' 'rust' 'git' 'wayland-protocols' 'clang' 'libxcursor' 'cairo' 'gdk-pixbuf2') optdepends=('weston: default terminal emulator' 'dmenu: default launcher' 'way-cooler-bg: draws a background for Way Cooler') provides=('way-cooler') conflicts=('way-cooler') backup=('etc/way-cooler/rc.lua') source=("${pkgname}::git+https://github.com/Immington-Industries/way-cooler.git" "git+https://github.com/swaywm/wlroots-rs" "git+https://github.com/swaywm/wlroots" "0001-wlroots-needs-to-be-dynamic.patch") md5sums=('SKIP' 'SKIP' 'SKIP' '0aa8ef19bbe4d66d5dd6d796498ab8e2') pkgver() { cd "$pkgname" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd $pkgname git submodule update --init --recursive #git submodule init wlroots-rs #git config submodule.wlroots-rs.url ../wlroots-rs #git submodule update --remote --init wlroots-rs #cd ../wlroots-rs #git submodule init wlroots-sys/wlroots # git config submodule.wlroots.url ../wlroots # git submodule update --init --recursive --remote wlroots-sys/wlroots/ # cd ../wlroots # git reset --hard 79683ee497cff4e363612933af2f068cfea9b19c } build() { cd "$srcdir/$pkgname/wlroots-rs" patch -i ../../0001-wlroots-needs-to-be-dynamic.patch #RUST_BACKTRACE=1 cargo build --all-features --release cd "$srcdir/$pkgname" RUST_BACKTRACE=1 cargo build --all-features --release } package() { cd "$srcdir/$pkgname" cargo install way-cooler --root "$pkgdir" mkdir "$pkgdir/usr" mv "$pkgdir/bin" "$pkgdir/usr" mkdir -p "$pkgdir/etc/way-cooler" cp "$srcdir/$pkgname/config/rc.lua" "$pkgdir/etc/way-cooler" mkdir -p "$pkgdir/usr/share/wayland-sessions" cp "$srcdir/$pkgname/way-cooler.desktop" "$pkgdir/usr/share/wayland-sessions" } # vim:set ts=2 sw=2 et: