2017-11-06 15:38:59 +01:00
|
|
|
# Template file for 'way-cooler'
|
|
|
|
pkgname=way-cooler
|
2018-01-26 23:54:35 +01:00
|
|
|
version=0.8.0
|
2017-11-06 15:38:59 +01:00
|
|
|
revision=1
|
2017-12-25 12:38:24 +01:00
|
|
|
hostmakedepends="pkg-config rust cargo git python3"
|
|
|
|
makedepends="dbus-devel glib-devel cairo-devel wayland-devel wlc-devel libxcb-devel gdk-pixbuf-devel
|
|
|
|
lua-devel"
|
2017-11-06 15:38:59 +01:00
|
|
|
short_desc="Customizable Wayland compositor written in Rust with Lua API"
|
|
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/way-cooler/way-cooler"
|
|
|
|
distfiles="https://github.com/way-cooler/way-cooler/archive/v${version}.tar.gz"
|
2018-01-26 23:54:35 +01:00
|
|
|
checksum=34c67a8a616992d55cb3669dcfbaa5a92f6872193f216828ec2f4a2fad524dc0
|
2017-11-06 15:38:59 +01:00
|
|
|
nocross=yes
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cargo build --release
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# install the binary
|
|
|
|
vbin target/release/"${pkgname}"
|
2017-12-25 12:38:24 +01:00
|
|
|
chmod u+s "${DESTDIR}"/usr/bin/way-cooler
|
2017-11-06 15:38:59 +01:00
|
|
|
|
|
|
|
# install the configuration on the examples
|
2017-12-25 12:38:24 +01:00
|
|
|
vsconf config/rc.lua
|
2017-11-06 15:38:59 +01:00
|
|
|
vsconf config/init.lua
|
|
|
|
|
|
|
|
# normally the docs would be in a separate -doc package but the end
|
|
|
|
# user has to configure the wayland compositor and these provide
|
|
|
|
# essential information
|
|
|
|
vmkdir usr/share/docs/"${pkgname}"
|
|
|
|
vcopy "docs/*" usr/share/docs/"${pkgname}"
|
|
|
|
|
|
|
|
# Install .desktop file
|
|
|
|
vmkdir usr/share/wayland-sessions
|
|
|
|
vcopy way-cooler.desktop usr/share/wayland-sessions
|
|
|
|
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|