blob: ed002766c529879eee24c82ecc069b7a33923062 (
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
39
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=galculator
pkgver=2.0.1
pkgrel=0
pkgdesc="GTK+ based scientific calculator"
url="http://galculator.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends="intltool libglade-dev gtk+-dev autoconf automake libtool flex bison"
subpackages="$pkgname-doc $pkgname-lang"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
galculator-1.3.4-libm.patch"
_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
libtoolize --force && aclocal && autoconf && automake --add-missing
}
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="c4436478adfef4f3a7d6c42ce8286d34 galculator-2.0.1.tar.bz2
ff768da01f552ae4018904aa5fa55ab5 galculator-1.3.4-libm.patch"
|