Merge pull request #3206 from stpx/galculator-gtk

galculator-gtk3: update to 2.1.4.
This commit is contained in:
Juan RP 2015-12-21 09:08:14 +01:00
commit b20c0e33cc
3 changed files with 46 additions and 30 deletions

1
srcpkgs/galculator-gtk2 Symbolic link
View file

@ -0,0 +1 @@
galculator-gtk3

View file

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

View file

@ -1,17 +1,50 @@
# Template file for 'galculator'
pkgname="galculator-gtk3"
version="2.1.3"
revision=2
pkgname=galculator-gtk3
version=2.1.4
revision=1
wrksrc="${pkgname%-*}-${version}"
build_style=gnu-configure
depends="gtk-update-icon-cache"
makedepends="gtk+3-devel"
hostmakedepends="intltool pkg-config"
conflicts="galculator-gtk2>=0"
short_desc="GTK+ based scientific calculator"
hostmakedepends="automake flex gettext-devel glib-devel intltool libtool pkg-config"
makedepends="gtk+-devel gtk+3-devel"
short_desc="GTK+ based scientific calculator (GTK+3)"
maintainer="Aaditya Bagga <abchk1234@gmail.com>"
license="GPL-2"
homepage="galculator.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname%-*}/${pkgname%-*}-${version}.tar.bz2"
checksum="91ac62d6d74da910cb79c68f7bf3f4505ac0efe51091150c4ea54fe1c1306235"
homepage="http://galculator.mnim.org/"
distfiles="https://github.com/${pkgname%-*}/${pkgname%-*}/archive/v${version}.tar.gz"
checksum=dcbdb48ddf8a3f68b9aa5902f880f174fd269de2b7410988148d05871012e142
provides="galculator-${version}_${revision}"
replaces="galculator-gtk2>=0"
pre_configure() {
mkdir -p gtk2
mv * gtk2 || true
cp -a gtk2 gtk3
}
do_configure() {
# GTK+2
cd ${wrksrc}/gtk2
./autogen.sh ${configure_args} --disable-gtk3
# GTK+3
cd ${wrksrc}/gtk3
./autogen.sh ${configure_args} --enable-gtk3
}
do_build() {
make ${makejobs} -C gtk2
make ${makejobs} -C gtk3
}
do_install() {
make DESTDIR=${DESTDIR} -C ${wrksrc}/gtk3 install
}
galculator-gtk2_package() {
short_desc="${short_desc/GTK+3/GTK+2}"
provides="galculator-${version}_${revision}"
replaces="galculator-gtk3>=0"
pkg_install() {
make DESTDIR=${PKGDESTDIR} -C ${wrksrc}/gtk2 install
}
}