summaryrefslogtreecommitdiffstats
path: root/main/galculator/APKBUILD
blob: 5e71d93f6a45dd36f16cc6eb8ecc7edc9d3af684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=galculator
pkgver=2.1
pkgrel=0
pkgdesc="GTK+ based scientific calculator"
url="http://galculator.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends="gtk+2.0-dev flex bison"
subpackages="$pkgname-doc $pkgname-lang"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir/galculator-$pkgver"
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-gtk3 \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/galculator-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="f8e1c022126ecbd466fbaf0fe7bcaaff  galculator-2.1.tar.bz2"
sha256sums="f3ae03601a123287cddf6f79e79cf37bbe5ce87a98997e0fd623f1cd08e6f6be  galculator-2.1.tar.bz2"
sha512sums="47bfcb67bd5cc9aa2974ac862f252daff207ad20975304af56d96465cfb01aa8d4fad729b87f4c2f5a8a821b5cad376b494fea433fac4a7b460713c6bf3f2237  galculator-2.1.tar.bz2"