summaryrefslogtreecommitdiff
path: root/community/galculator
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/galculator
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/galculator')
-rw-r--r--community/galculator/PKGBUILD31
-rw-r--r--community/galculator/galculator.install11
2 files changed, 42 insertions, 0 deletions
diff --git a/community/galculator/PKGBUILD b/community/galculator/PKGBUILD
new file mode 100644
index 000000000..210ce954f
--- /dev/null
+++ b/community/galculator/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 92890 2013-06-18 08:47:35Z bpiotrowski $
+# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+pkgname=galculator
+pkgver=2.1.2
+pkgrel=1
+pkgdesc='GTK+ based scientific calculator'
+arch=('i686' 'x86_64')
+url='http://galculator.sourceforge.net/'
+license=('GPL')
+depends=('gtk3' 'hicolor-icon-theme' 'gtk-update-icon-cache' 'desktop-file-utils')
+makedepends=('intltool')
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/galculator/galculator-$pkgver.tar.bz2)
+sha256sums=('23e7e8d02ec49bf06e061e7fa56c779fd0f353ec294c30fd88858786d8e4a79b')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ LDFLAGS+=' -lm'
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/galculator/galculator.install b/community/galculator/galculator.install
new file mode 100644
index 000000000..fe845ffb1
--- /dev/null
+++ b/community/galculator/galculator.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+ [[ -e /usr/bin/gtk-update-icon-cache ]] && gtk-update-icon-cache
+}
+
+post_upgrade() {
+ post_install
+}
+post_remove() {
+ post_install
+}