void-packages/srcpkgs/subtle/template
2021-01-09 21:54:46 +01:00

37 lines
982 B
Bash

# Template file for 'subtle'
pkgname=subtle
version=0.11.3285
revision=1
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-2"
homepage="http://subtle.subforge.org"
conf_files="/etc/xdg/subtle/subtle.rb"
broken="source location down"
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-2.7.0/"
export CFLAGS
fi
do_fetch() {
local url="http://hg.subforge.org/${pkgname}"
msg_normal "Fetching source ${version%.*} from $url ...\n"
hg clone --rev ${version##*.} ${url} ${pkgname}-${version}
}
do_configure() {
DESTDIR=$PKGDESTDIR rake config
}
do_build() {
rake build
}
do_install() {
rake install
}