void-packages/srcpkgs/subtle/template
2021-07-23 14:49:53 +02:00

34 lines
968 B
Bash

# Template file for 'subtle'
pkgname=subtle
version=0.11.6579
revision=2
wrksrc="${pkgname}-${version#*.*.}"
hostmakedepends="python3 mercurial ruby-devel pkg-config"
makedepends="ruby-devel libX11-devel libXpm-devel libXft-devel
libXinerama-devel libXrandr-devel libXtst-devel"
short_desc="Manual tiling window manager"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3.0-or-later"
homepage="https://hg.unexist.dev/subtle/"
distfiles="https://hg.unexist.dev/subtle/archive/${version#*.*.}.tar.gz"
checksum=82fead3b4ced4d9985410e1dfd912fc8f78ce5c1b77448862da5a5bea1a33a96
conf_files="/etc/xdg/subtle/subtle.rb"
if [ "$CROSS_BUILD" ]; then
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
broken="Word size must match"
fi
hostmakedepends+=" $makedepends"
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/ruby-3.0.0/"
export CFLAGS
fi
do_configure() {
DESTDIR=$PKGDESTDIR rake config
}
do_build() {
rake build
}
do_install() {
rake install
}