blob: 20ed8b0148dda2928902fb2a2919f3d185a35a35 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $Id: PKGBUILD 107795 2014-03-19 18:01:16Z flexiondotorg $
# Maintainer : Martin Wimpress <code@flexion.org>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Alexander Fehr <pizzapunk gmail com>
pkgbase=galculator
pkgname=(galculator galculator-gtk2)
pkgver=2.1.3
pkgrel=2
pkgdesc='GTK+ based scientific calculator'
arch=('i686' 'x86_64')
url='http://galculator.sourceforge.net/'
license=('GPL')
depends=('gtk2' 'gtk3')
makedepends=('intltool')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2")
sha256sums=('91ac62d6d74da910cb79c68f7bf3f4505ac0efe51091150c4ea54fe1c1306235')
build() {
# GTK3 version
cd "${srcdir}/${pkgbase}-${pkgver}"
[ -d gtk3 ] || mkdir gtk3
cd gtk3
../configure \
--prefix=/usr
make
# GTK2 version
cd "${srcdir}/${pkgbase}-${pkgver}"
[ -d gtk2 ] || mkdir gtk2
cd gtk2
../configure \
--prefix=/usr \
--disable-gtk3
make
}
package_galculator() {
depends=('gtk3')
cd "${pkgbase}-${pkgver}/gtk3"
make DESTDIR="$pkgdir" install
}
package_galculator-gtk2() {
pkgdesc+=' (GTK2 version)'
depends=('gtk2')
groups=('mate-extra')
replaces=('mate-calc')
conflicts=('galculator' 'mate-calc')
cd "${pkgbase}-${pkgver}/gtk2"
make DESTDIR="$pkgdir" install
}
|