From 16532b4abce669b24581bc710d005c49e7623e54 Mon Sep 17 00:00:00 2001 From: human Date: Wed, 30 Jan 2019 16:26:36 +0200 Subject: [PATCH] deadbeef-waveform-seekbar: add gtk3 build option --- srcpkgs/deadbeef-waveform-seekbar/template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/srcpkgs/deadbeef-waveform-seekbar/template b/srcpkgs/deadbeef-waveform-seekbar/template index 6ff1e0093ca..500fcca05e8 100644 --- a/srcpkgs/deadbeef-waveform-seekbar/template +++ b/srcpkgs/deadbeef-waveform-seekbar/template @@ -1,14 +1,14 @@ # Template file for 'deadbeef-waveform-seekbar' pkgname=deadbeef-waveform-seekbar version=0.5.20180417 -revision=1 +revision=2 _commit=52b37e8a95c36d93a348eb78b11bb54dfb039b9d wrksrc="ddb_waveform_seekbar-${_commit}" build_style=gnu-makefile make_use_env=yes -make_build_args="gtk3" +make_build_args="$(vopt_if gtk3 gtk3 gtk2)" hostmakedepends="pkg-config" -makedepends="deadbeef-devel gtk+3-devel sqlite-devel" +makedepends="deadbeef-devel sqlite-devel $(vopt_if gtk3 gtk+3-devel gtk+-devel)" depends="deadbeef" short_desc="Waveform Seekbar plugin for DeaDBeeF audio player" maintainer="newbluemoon " @@ -16,9 +16,11 @@ license="GPL-2.0-or-later" homepage="https://github.com/cboxdoerfer/ddb_waveform_seekbar" distfiles="https://github.com/cboxdoerfer/ddb_waveform_seekbar/archive/${_commit}.tar.gz" checksum=42870d818dc0e89975f4524d3365a44c6b5fb0f119d7e7ec49d07bf92bb29b83 +build_options="gtk3" +build_options_default="gtk3" LDFLAGS+=" -lm" do_install() { vmkdir usr/lib/deadbeef - vinstall gtk3/ddb_misc_waveform_GTK3.so 755 usr/lib/deadbeef + vinstall $(vopt_if gtk3 gtk3/ddb_misc_waveform_GTK3.so gtk2/ddb_misc_waveform_GTK2.so) 755 usr/lib/deadbeef }