[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Sat Oct 1 13:55:06 UTC 2016
Date: Saturday, October 1, 2016 @ 13:55:06
Author: anthraxx
Revision: 191143
addpkg: libindicator 12.10.1-7
Added:
libindicator/
libindicator/repos/
libindicator/trunk/
libindicator/trunk/PKGBUILD
----------+
PKGBUILD | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
Added: libindicator/trunk/PKGBUILD
===================================================================
--- libindicator/trunk/PKGBUILD (rev 0)
+++ libindicator/trunk/PKGBUILD 2016-10-01 13:55:06 UTC (rev 191143)
@@ -0,0 +1,85 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
+# Contributor: Yurii Kolesnykov <yurikoles at gmail dot com>
+# Contributor: Gustavo <sl1pkn07 at gmail dot com>
+# Contributor: Maxime Gauduin <alucryd at archlinux dot org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgbase=libindicator
+pkgname=("${pkgbase}-gtk"{2,3})
+pkgver=12.10.1
+pkgrel=7
+pkgdesc='Set of symbols and convenience functions for Ayatana indicators'
+url='https://launchpad.net/libindicator'
+arch=('i686' 'x86_64')
+license=('GPL3')
+makedepends=('gtk2' 'gtk3' '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() {
+ msg2 "Building gtk3..."
+ (cd ${pkgbase}-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/libindicator \
+ --sysconfdir=/etc \
+ --with-gtk=3 \
+ --disable-static \
+ --disable-tests
+ make
+ )
+
+ msg2 "Building gtk2..."
+ (cd ${pkgbase}-${pkgver}-gtk2
+ ./configure \
+ --prefix=/usr \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/libindicator \
+ --sysconfdir=/etc \
+ --with-gtk=2 \
+ --disable-static \
+ --disable-tests
+ make
+ )
+}
+
+package_libindicator-gtk2() {
+ pkgdesc+=" (GTK+ 2 library)"
+ depends=('gtk2')
+ provides=("${pkgbase}")
+ conflicts=("${pkgbase}")
+
+ cd ${pkgbase}-${pkgver}-gtk2
+ make -j1 DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/usr/share
+}
+
+package_libindicator-gtk3() {
+ pkgdesc+=" (GTK+ 3 library)"
+ depends=('gtk3')
+ provides=("${pkgbase}3")
+ conflicts=("${pkgbase}3")
+
+ cd ${pkgbase}-${pkgver}
+ make -j1 DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/usr/share
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list