void-packages/srcpkgs/Adapta/template

30 lines
1.1 KiB
Bash

# Template file for 'Adapta'
pkgname=Adapta
version=3.95.0.11
revision=3
wrksrc="adapta-gtk-theme-$version"
build_style=gnu-configure
hostmakedepends="automake glib-devel inkscape parallel pkg-config
procps-ng sassc"
makedepends="glib-devel librsvg-devel"
short_desc="Adaptive Gtk+ theme based on Material Design Guidelines"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later, CC-BY-SA-4.0"
homepage=https://github.com/adapta-project/adapta-gtk-theme
distfiles="https://github.com/adapta-project/adapta-gtk-theme/archive/$version.tar.gz"
checksum=fb8fc11b770be59e1673b8f2d917704fc34e53aee5fb02fed70d83909d3309bd
pre_configure() {
#
# Inkscape command line options changed for version 1.0.
# The export type is derived from the filename suffix and
# may be specified explicitly with e.g. --export-type="png".
#
# Previous: --export-png=filename.png
# Current : --export-type="png" --export-filename=filename.png
#
find -name "*.sh" -print0 | xargs -0 \
sed -i -e "s;--export-png=;--export-type=\"png\" --export-filename=;"
NOCONFIGURE=1 ./autogen.sh
}