From e2b509002efc9d7d34c22d1e11b7871a76b241fe Mon Sep 17 00:00:00 2001 From: Aaditya Bagga Date: Wed, 18 Feb 2015 01:12:46 +0530 Subject: [PATCH] galculator-gtk2: use {pkgname%-*} instead of custom _pkgname --- srcpkgs/galculator-gtk2/template | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/srcpkgs/galculator-gtk2/template b/srcpkgs/galculator-gtk2/template index c05ab7e1af0..8f3258b9a0e 100644 --- a/srcpkgs/galculator-gtk2/template +++ b/srcpkgs/galculator-gtk2/template @@ -1,10 +1,9 @@ # Template file for 'galculator' pkgname="galculator-gtk2" -_pkgname="galculator" version="2.1.3" revision=1 -wrksrc="${_pkgname}-${version}" +wrksrc="${pkgname%-*}-${version}" build_style=gnu-configure configure_args="--disable-gtk3" depends="gtk-update-icon-cache" @@ -15,5 +14,5 @@ short_desc="GTK+ based scientific calculator" maintainer="Aaditya Bagga " license="GPL-2" homepage="galculator.sourceforge.net" -distfiles="${SOURCEFORGE_SITE}/${_pkgname}/${_pkgname}-${version}.tar.bz2" +distfiles="${SOURCEFORGE_SITE}/${pkgname%-*}/${pkgname%-*}-${version}.tar.bz2" checksum="91ac62d6d74da910cb79c68f7bf3f4505ac0efe51091150c4ea54fe1c1306235"