[arch-commits] Commit in galculator/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 21:13:57 UTC 2018


    Date: Friday, November 9, 2018 @ 21:13:57
  Author: felixonmars
Revision: 404566

archrelease: copy trunk to community-staging-x86_64

Added:
  galculator/repos/community-staging-x86_64/
  galculator/repos/community-staging-x86_64/PKGBUILD
    (from rev 404565, galculator/trunk/PKGBUILD)

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Copied: galculator/repos/community-staging-x86_64/PKGBUILD (from rev 404565, galculator/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 21:13:57 UTC (rev 404566)
@@ -0,0 +1,53 @@
+# Contributor: Martin Wimpress <code at flexion.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Bartłomiej Piotrowski <barthalion at gmail.com>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+pkgbase=galculator
+pkgname=(galculator galculator-gtk2)
+pkgver=2.1.4
+pkgrel=4
+pkgdesc='GTK+ based scientific calculator'
+arch=('x86_64')
+url='http://galculator.sourceforge.net/'
+license=('GPL')
+depends=('gtk2' 'gtk3')
+makedepends=('intltool')
+source=("http://galculator.mnim.org/downloads/${pkgbase}-${pkgver}.tar.bz2")
+sha256sums=('01cfafe6606e7ec45facb708ef85efd6c1e8bb41001a999d28212a825ef778ae')
+
+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')
+  conflicts=('galculator')
+
+  cd "${pkgbase}-${pkgver}/gtk2"
+  make DESTDIR="$pkgdir" install
+}


More information about the arch-commits mailing list