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