way-cooler: use cargo buildstyle
This commit is contained in:
parent
2293678fd3
commit
964434861f
|
@ -1,8 +1,9 @@
|
|||
# Template file for 'way-cooler'
|
||||
pkgname=way-cooler
|
||||
version=0.8.0
|
||||
revision=1
|
||||
hostmakedepends="pkg-config rust cargo git python3 glib-devel"
|
||||
revision=2
|
||||
build_style=cargo
|
||||
hostmakedepends="pkg-config git python3 glib-devel"
|
||||
makedepends="dbus-devel libglib-devel cairo-devel wayland-devel wlc-devel
|
||||
libxcb-devel gdk-pixbuf-devel lua-devel"
|
||||
short_desc="Customizable Wayland compositor written in Rust with Lua API"
|
||||
|
@ -11,15 +12,9 @@ license="MIT"
|
|||
homepage="https://github.com/way-cooler/way-cooler"
|
||||
distfiles="https://github.com/way-cooler/way-cooler/archive/v${version}.tar.gz"
|
||||
checksum=34c67a8a616992d55cb3669dcfbaa5a92f6872193f216828ec2f4a2fad524dc0
|
||||
nocross=yes
|
||||
nocross="error compiling wayland-sys: mismatched types --> src/wayland/gamma_control.rs:101:13"
|
||||
|
||||
do_build() {
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# install the binary
|
||||
vbin target/release/"${pkgname}"
|
||||
post_install() {
|
||||
chmod u+s "${DESTDIR}"/usr/bin/way-cooler
|
||||
|
||||
# install the configuration on the examples
|
||||
|
|
Loading…
Reference in New Issue