Created
December 15, 2012 10:59
-
-
Save swiftgeek/4293794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jameson Pugh <[email protected]> | |
# Contributor: Swift Geek < swift geek ât gmail døt cøm> | |
pkgname=lib32-libappindicator | |
_pkgbasename=libappindicator | |
pkgver=12.10.0 | |
pkgrel=1 | |
pkgdesc="Library to allow applications to export a menu into the Unity Menu bar (GTK+ 2 library)" | |
arch=('i686' 'x86_64') | |
url="https://launchpad.net/libappindicator" | |
license=('LGPL') | |
depends=('lib32-libindicator' 'lib32-libdbusmenu-gtk2') | |
makedepends=('gobject-introspection' 'vala' 'pygtk' 'perl-xml-libxml' 'dbus-glib' 'gcc-multilib') | |
options=('!libtool') | |
source=("http://launchpad.net/libappindicator/${pkgver%.*}/$pkgver/+download/$_pkgbasename-$pkgver.tar.gz") | |
md5sums=('41910f2005edee9240da1e53fffcdc12') | |
build() { | |
export CC='gcc -m32' | |
export CXX='g++ -m32' | |
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' | |
cd "$srcdir/$_pkgbasename-$pkgver" | |
rm -rf bindings/python | |
# Fix mono bindings location | |
sed -i 's|/cli/|/mono/|' bindings/mono/{appindicator-sharp-0.1.pc.in,Makefile.in} | |
sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die # comment this to enable mono - stolen from gen2 | |
patch -p1 < "${srcdir}/python-gtfo.patch" | |
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ | |
--libdir=/usr/lib32 --disable-static --disable-tests --disable-mono-test --disable-introspection --disable-gtk-doc-html --disable-maintainer-mode --disable-mono | |
make -j1 | |
} | |
package() { | |
cd "$srcdir/$_pkgbasename-$pkgver" | |
make DESTDIR="$pkgdir/" install | |
rm -rf "${pkgdir}"/usr/{include,share,bin} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://gist.github.com/4293782 for python-gtfo.patch