void-packages/srcpkgs/gtk-theme-config/template

32 lines
943 B
Bash

# Template file for 'gtk-theme-config'
pkgname=gtk-theme-config
reverts=20140605_1
version=1.0
revision=3
build_style=gnu-makefile
hostmakedepends="pkg-config vala-devel"
makedepends="glib-devel vala-devel gtk+3-devel hicolor-icon-theme desktop-file-utils"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="Utility to set GTK Theme Preferences"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://github.com/satya164/gtk-theme-config"
distfiles="$homepage/archive/v$version.tar.gz"
checksum=174aac3ea43966168d120dbd9e0f23d7900d095ee1b0cf32472d59b0fdea8448
patch_args=-Np0
pre_build() {
local _p _cflags _ldflags
# Prepend every CFLAGS item with -X
for _p in ${CFLAGS}; do
_cflags="${_cflags} -X $_p"
done
# Prepend every LDFLAGS item with -X
for _p in ${LDFLAGS}; do
_ldflags="${_ldflags} -X $_p"
done
# Add to VALACFLAGS
vsed -i Makefile -e "s;^VALACFLAGS.*;& $_cflags $_ldflags;"
}