summaryrefslogtreecommitdiff
path: root/community/galculator/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/galculator/PKGBUILD')
-rw-r--r--community/galculator/PKGBUILD40
1 files changed, 30 insertions, 10 deletions
diff --git a/community/galculator/PKGBUILD b/community/galculator/PKGBUILD
index 3cba40d6c..c1e5219fc 100644
--- a/community/galculator/PKGBUILD
+++ b/community/galculator/PKGBUILD
@@ -1,31 +1,51 @@
-# $Id: PKGBUILD 92890 2013-06-18 08:47:35Z bpiotrowski $
-# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com>
+# $Id: PKGBUILD 104578 2014-01-23 04:23:17Z bgyorgy $
+# Maintainer: 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>
-pkgname=galculator
+pkgbase=galculator
+pkgname=(galculator galculator-gtk2)
pkgver=2.1.2
-pkgrel=1
+pkgrel=2
pkgdesc='GTK+ based scientific calculator'
arch=('i686' 'x86_64' 'mips64el')
url='http://galculator.sourceforge.net/'
license=('GPL')
-depends=('gtk3' 'hicolor-icon-theme' 'gtk-update-icon-cache' 'desktop-file-utils')
+depends=('gtk3' 'gtk2')
makedepends=('intltool')
install=$pkgname.install
source=(http://downloads.sourceforge.net/galculator/galculator-$pkgver.tar.bz2)
sha256sums=('23e7e8d02ec49bf06e061e7fa56c779fd0f353ec294c30fd88858786d8e4a79b')
build() {
+ # GTK3 version
+ cd $pkgname-$pkgver
+ [ -e gtk3 ] || mkdir gtk3
+ cd gtk3
+ ../configure --prefix=/usr
+ make
+
+ # GTK2 version
cd $srcdir/$pkgname-$pkgver
-
- LDFLAGS+=' -lm'
- ./configure --prefix=/usr
+ [ -e gtk2 ] || mkdir gtk2
+ cd gtk2
+ ../configure --prefix=/usr --disable-gtk3
make
}
-package() {
- cd $srcdir/$pkgname-$pkgver
+package_galculator() {
+ depends=('gtk3')
+
+ cd $pkgbase-$pkgver/gtk3
+ make DESTDIR="$pkgdir" install
+}
+
+package_galculator-gtk2() {
+ pkgdesc+=' (GTK2 version)'
+ depends=('gtk2')
+ conflicts=('galculator')
+ cd $pkgbase-$pkgver/gtk2
make DESTDIR="$pkgdir" install
}