To simplify testing for the currently used gcc version introduce global environment variables to avoid running `gcc --version`.
45 lines
1.5 KiB
Bash
45 lines
1.5 KiB
Bash
# Template file for 'brasero'
|
|
pkgname=brasero
|
|
version=3.12.1
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--disable-schemas-compile --disable-caches $(vopt_if gir introspection)"
|
|
hostmakedepends="pkg-config intltool cdrtools gnome-doc-utils itstool
|
|
$(vopt_if gir gobject-introspection)"
|
|
makedepends="gst-plugins-base1-devel totem-pl-parser-devel libnotify-devel
|
|
libcanberra-devel nautilus-devel tracker-devel libisofs-devel
|
|
libburn-devel libSM-devel dconf-devel"
|
|
depends="cdrdao cdrtools dconf shared-mime-info hicolor-icon-theme desktop-file-utils"
|
|
short_desc="Application to burn CD/DVD for the Gnome Desktop"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gnome.org/projects/brasero"
|
|
license="GPL-2"
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
|
checksum=9a5eea53e57b66de3c7c8c2393ac21a58d5afa81c6cfb16b3c7f010a3d147127
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
|
|
CFLAGS="-Wno-error=format-nonliteral -Wno-error=format-y2k"
|
|
CXXFLAGS="-Wno-error=format-nonliteral -Wno-error=format-y2k"
|
|
fi
|
|
|
|
brasero-devel_package() {
|
|
depends="gtk+3-devel brasero>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|