galculator-gtk2: use {pkgname%-*} instead of custom _pkgname

This commit is contained in:
Aaditya Bagga 2015-02-18 01:12:46 +05:30
parent 60bf488993
commit e2b509002e

View file

@ -1,10 +1,9 @@
# Template file for 'galculator' # Template file for 'galculator'
pkgname="galculator-gtk2" pkgname="galculator-gtk2"
_pkgname="galculator"
version="2.1.3" version="2.1.3"
revision=1 revision=1
wrksrc="${_pkgname}-${version}" wrksrc="${pkgname%-*}-${version}"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-gtk3" configure_args="--disable-gtk3"
depends="gtk-update-icon-cache" depends="gtk-update-icon-cache"
@ -15,5 +14,5 @@ short_desc="GTK+ based scientific calculator"
maintainer="Aaditya Bagga <abchk1234@gmail.com>" maintainer="Aaditya Bagga <abchk1234@gmail.com>"
license="GPL-2" license="GPL-2"
homepage="galculator.sourceforge.net" homepage="galculator.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${_pkgname}/${_pkgname}-${version}.tar.bz2" distfiles="${SOURCEFORGE_SITE}/${pkgname%-*}/${pkgname%-*}-${version}.tar.bz2"
checksum="91ac62d6d74da910cb79c68f7bf3f4505ac0efe51091150c4ea54fe1c1306235" checksum="91ac62d6d74da910cb79c68f7bf3f4505ac0efe51091150c4ea54fe1c1306235"