# Maintainer: Natanael Copa <ncopa@alpinelinux.org> setvar pkgname = 'galculator' setvar pkgver = '2.1.4' setvar pkgrel = '0' setvar pkgdesc = ""GTK+ based scientific calculator"" setvar url = ""http://galculator.mnim.org/"" setvar arch = ""all"" setvar license = ""GPL"" setvar depends = '' setvar makedepends = ""gtk+2.0-dev flex bison"" setvar subpackages = ""$pkgname-doc $pkgname-lang"" setvar source = ""http://galculator.mnim.org/downloads/galculator-$pkgver.tar.bz2"" setvar _builddir = ""$srcdir/galculator-$pkgver"" proc prepare { cd $_builddir update_config_sub || return 1 for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-gtk3 \ || return 1 make || return 1 } proc package { cd "$srcdir/galculator-$pkgver" make DESTDIR="$pkgdir" install || return 1 } setvar md5sums = ""1a115d6799dc453a29760e7bd4a56374 galculator-2.1.4.tar.bz2"" setvar sha256sums = ""01cfafe6606e7ec45facb708ef85efd6c1e8bb41001a999d28212a825ef778ae galculator-2.1.4.tar.bz2"" setvar sha512sums = ""ca5f373649d9bf26184e94ba6a501610efbb13e92a8723cda78b83aa495519e82e5b4fcd17f00f615eb702ed186598aecc70ae63a8238c32384b7f608cba4cfa galculator-2.1.4.tar.bz2""