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

Levente Polyak anthraxx at archlinux.org
Sat Oct 1 14:03:07 UTC 2016


    Date: Saturday, October 1, 2016 @ 14:03:07
  Author: anthraxx
Revision: 191146

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-libindicator/repos/multilib-x86_64/
  lib32-libindicator/repos/multilib-x86_64/PKGBUILD
    (from rev 191145, lib32-libindicator/trunk/PKGBUILD)

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

Copied: lib32-libindicator/repos/multilib-x86_64/PKGBUILD (from rev 191145, lib32-libindicator/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-x86_64/PKGBUILD	2016-10-01 14:03:07 UTC (rev 191146)
@@ -0,0 +1,90 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Manuel Hüsers <manuel.huesers at uni-ol.de>
+# Contributor: FadeMind <fademind at gmail.com>
+# Contributor: Jameson Pugh <imntreal at gmail.com>
+
+_pkgbase=libindicator
+pkgbase=lib32-${_pkgbase}
+pkgname=("${pkgbase}-gtk"{2,3})
+pkgver=12.10.1
+pkgrel=6
+pkgdesc='Set of symbols and convenience functions for Ayatana indicators (32-bit)'
+url='https://launchpad.net/libindicator'
+arch=('i686' 'x86_64')
+license=('GPL3')
+makedepends=("lib32-gtk"{2,3} 'pkg-config')
+source=(https://launchpad.net/${_pkgbase}/${pkgver%.*}/${pkgver}/+download/${_pkgbase}-${pkgver}.tar.gz{,.asc})
+sha512sums=('d6d77d0309b15cf6b52539323920ab0c1594cb1c1cef8a8d67cd0f76f8ceeeac28eb6db6227563df1932e6f1fadcffac68d82982182b745257dfaf91f1c945af'
+            'SKIP')
+validpgpkeys=('6FC05581A37D71FCECE165DB5BE41E162CD6358E')  # Charles Kerr <charles.kerr at canonical.com>
+
+prepare() {
+  (cd ${_pkgbase}-${pkgver}
+    sed '/-Werror/s/$/ -Wno-deprecated-declarations/' -i ${_pkgbase}/Makefile.{am,in}
+    sed 's/LIBINDICATOR_LIBS+="$LIBM"/LIBINDICATOR_LIBS+=" $LIBM"/g' -i configure
+    sed 's/LIBM="-lmw"/LIBM=" -lmw"/g' -i configure
+    sed 's/LIBM="-lm"/LIBM=" -lm"/g' -i configure
+    sed 's/LIBS="-lm  $LIBS"/LIBS=" -lm  $LIBS"/g' -i configure
+    sed 's/LIBS="-lmw  $LIBS"/LIBS=" -lmw  $LIBS"/g' -i configure
+    sed 's/LIBM="-lm"/LIBM=" -lm"/g' -i m4/libtool.m4
+  )
+  cp -ra ${_pkgbase}-${pkgver}{,-gtk2}
+}
+
+build() {
+  export CC='gcc -m32'
+  export CXX='g++ -m32'
+  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+  msg2 "Building gtk3..."
+  (cd ${_pkgbase}-${pkgver}
+    ./configure \
+      --prefix=/usr \
+      --localstatedir=/var \
+      --libexecdir=/usr/lib32/libindicator \
+      --libdir=/usr/lib32 \
+      --sysconfdir=/etc \
+      --with-gtk=3 \
+      --disable-static \
+      --disable-tests
+    make
+  )
+
+  msg2 "Building gtk2..."
+  (cd ${_pkgbase}-${pkgver}-gtk2
+    ./configure \
+      --prefix=/usr \
+      --localstatedir=/var \
+      --libexecdir=/usr/lib32/libindicator \
+      --libdir=/usr/lib32 \
+      --sysconfdir=/etc \
+      --with-gtk=2 \
+      --disable-static \
+      --disable-tests
+    make
+  )
+}
+
+package_lib32-libindicator-gtk2() {
+  pkgdesc+=" (GTK+ 2 library)"
+  depends=("${_pkgbase}-gtk2" 'lib32-gtk2')
+  provides=("${pkgbase}")
+  conflicts=("${pkgbase}")
+
+  cd ${_pkgbase}-${pkgver}-gtk2
+  make -j1 DESTDIR="${pkgdir}" install
+  rm -rf "${pkgdir}"/usr/{include,share,bin}
+}
+
+package_lib32-libindicator-gtk3() {
+  pkgdesc+=" (GTK+ 3 library)"
+  depends=("${_pkgbase}-gtk3" 'lib32-gtk3')
+  provides=("${pkgbase}3")
+  conflicts=("${pkgbase}3")
+
+  cd ${_pkgbase}-${pkgver}
+  make -j1 DESTDIR="${pkgdir}" install
+  rm -rf "${pkgdir}"/usr/{include,share,bin}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list