41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'way-cooler'
|
|
pkgname=way-cooler
|
|
version=0.7.0
|
|
revision=1
|
|
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"
|
|
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"
|
|
checksum=ce324ab158326610f0e77c4c1d710ca2e5ee8396f4df4675e3f136daf6386505
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
cargo build --release
|
|
}
|
|
|
|
do_install() {
|
|
# install the binary
|
|
vbin target/release/"${pkgname}"
|
|
chmod u+s "${DESTDIR}"/usr/bin/way-cooler
|
|
|
|
# install the configuration on the examples
|
|
vsconf config/rc.lua
|
|
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
|
|
}
|