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