diff options
Diffstat (limited to 'community/galculator')
-rw-r--r-- | community/galculator/PKGBUILD | 31 | ||||
-rw-r--r-- | community/galculator/galculator.install | 11 |
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 +} |