# Template for fbxkb pkgname="fbxkb" version="0.6" revision=1 build_style=configure short_desc="Lightweight X keyboard layout indicator, uses GTK+2" maintainer="Pavel Kiselev " hostmakedepends="pkg-config" makedepends="xorg-server-devel gtk+-devel" license="MIT" homepage="http://fbxkb.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz" checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2" pre_build() { # Substitute compiler, # Substitute CFLAGS (original options are subset of void's options), # Put LDFLAGS at the end of command (enables PIE) sed -i Makefile* \ -e "s;^CC.*=.*$;CC = ${CC};" \ -e "s;^CFLAGS.*=.*$;CFLAGS = ${CFLAGS};" \ -e "s;^\(.*\).(LDFLAGS)\(.*\)$;\1\2 ${LDFLAGS};" } do_install() { make PREFIX="${DESTDIR}/usr" install vlicense COPYING }