summaryrefslogtreecommitdiff
path: root/libappindicator-sharp-32/Pkgfile
blob: 6df03a99cc1e86c8026deceb756c30bc833d0bfc (plain)
    1 # Description: Allow applications to extend a menu via Ayatana indicators in Unity, KDE or Systray
    2 # URL: https://launchpad.net/libappindicator
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: libappindicator-gtk2-32 libappindicator-sharp
    5 
    6 name=libappindicator-sharp-32
    7 version=16.10
    8 release=1
    9 source=(http://unrealize.co.uk/source/libappindicator-16.10.tar.gz
   10   0001-Glib.Timeout-fix.patch
   11   0002-Fix-mono-nunit-pkgconfig-name.patch
   12   0003-Fix-Mono-assemblies-directory.patch
   13   badfunction.patch
   14   conditional-py-bindings.patch
   15   disable-mono.patch
   16   gtk3.patch
   17   improved-plasma-support.patch
   18   vala-inherit.patch)
   19 
   20 build() {
   21   cd libappindicator-$version
   22 
   23   # The next 3 patches shamelessly pinched from Arch
   24   patch -p1 -i $SRC/0001-Glib.Timeout-fix.patch
   25   patch -p1 -i $SRC/0002-Fix-mono-nunit-pkgconfig-name.patch
   26   patch -p1 -i $SRC/0003-Fix-Mono-assemblies-directory.patch
   27 
   28   # This one is also from Arch(ish), but had to be recreated best it could
   29   patch -p1 -i $SRC/improved-plasma-support.patch
   30 
   31   # Patch pinched from Gentoo
   32   patch -p1 -i $SRC/conditional-py-bindings.patch
   33 
   34   # Removed a function which had no declaration
   35   patch -p1 -i $SRC/badfunction.patch
   36 
   37   sed -i -e 's/ -Werror//' src/Makefile.am
   38   export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig'
   39   export CSC='/usr/bin/mcs'
   40   NOCONFIGURE=1 ./autogen.sh
   41 
   42   CXXFLAGS="$CXXFLAGS -std=c++11" \
   43   ./configure --prefix=/usr \
   44     --libdir=/usr/lib32 \
   45     --localstatedir=/var \
   46     --disable-{gtk-doc-html,python,mono-test,static,tests} \
   47     --with-gtk=2
   48 
   49   sed -e 's/DIST_SUBDIRS = vala python mono/DIST_SUBDIRS = vala mono/g' \
   50     -e 's/am__append_1 = python//g' \
   51     -i bindings/Makefile
   52 
   53   make
   54   make DESTDIR=$PKG -C bindings/mono -j1 install
   55   mv $PKG/usr/lib/mono $PKG/usr/lib32/mono
   56 
   57 #  rm -r $PKG/usr/{lib,include,share}
   58 }

Generated by cgit