2015-02-17 19:45:26 +01:00
|
|
|
# Template file for 'galculator'
|
2015-12-21 01:21:00 +01:00
|
|
|
pkgname=galculator-gtk3
|
|
|
|
version=2.1.4
|
|
|
|
revision=1
|
2015-02-17 20:43:02 +01:00
|
|
|
wrksrc="${pkgname%-*}-${version}"
|
2015-02-17 19:45:26 +01:00
|
|
|
build_style=gnu-configure
|
2015-12-21 01:21:00 +01:00
|
|
|
hostmakedepends="automake flex gettext-devel glib-devel intltool libtool pkg-config"
|
2015-12-21 01:05:21 +01:00
|
|
|
makedepends="gtk+-devel gtk+3-devel"
|
|
|
|
short_desc="GTK+ based scientific calculator (GTK+3)"
|
2015-02-17 19:45:26 +01:00
|
|
|
maintainer="Aaditya Bagga <abchk1234@gmail.com>"
|
|
|
|
license="GPL-2"
|
2015-12-21 01:21:00 +01:00
|
|
|
homepage="http://galculator.mnim.org/"
|
|
|
|
distfiles="https://github.com/${pkgname%-*}/${pkgname%-*}/archive/v${version}.tar.gz"
|
|
|
|
checksum=dcbdb48ddf8a3f68b9aa5902f880f174fd269de2b7410988148d05871012e142
|
2015-12-21 01:05:21 +01:00
|
|
|
|
|
|
|
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
|
2015-12-21 01:21:00 +01:00
|
|
|
./autogen.sh ${configure_args} --disable-gtk3
|
2015-12-21 01:05:21 +01:00
|
|
|
# GTK+3
|
|
|
|
cd ${wrksrc}/gtk3
|
2015-12-21 01:21:00 +01:00
|
|
|
./autogen.sh ${configure_args} --enable-gtk3
|
2015-12-21 01:05:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|