summaryrefslogtreecommitdiff
path: root/libappindicator-sharp/Pkgfile
blob: 1a0c8b13d49ac944715dd60defbd1488d61f79fd (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: Tim Biermann, tbier at posteo dot de
    4 # Depends on: mono gtk-sharp libappindicator-gtk2
    5 
    6 name=libappindicator-sharp
    7 version=16.10
    8 release=2
    9 source=(http://unrealize.co.uk/source/libappindicator-16.10.tar.gz
   10 0001-Glib.Timeout-fix.patch 0002-Fix-mono-nunit-pkgconfig-name.patch 0003-Fix-Mono-assemblies-directory.patch badfunction.patch conditional-py-bindings.patch disable-mono.patch gtk3.patch improved-plasma-support.patch vala-inherit.patch)
   11 
   12 build() {
   13   cd libappindicator-$version
   14   # The next 3 patches shamelessly pinched from Arch
   15   patch -p1 -i $SRC/0001-Glib.Timeout-fix.patch
   16   patch -p1 -i $SRC/0002-Fix-mono-nunit-pkgconfig-name.patch
   17   patch -p1 -i $SRC/0003-Fix-Mono-assemblies-directory.patch
   18 
   19   # This one is also from Arch(ish), but had to be recreated best it could
   20   patch -p1 -i $SRC/improved-plasma-support.patch
   21 
   22   # Patch pinched from Gentoo
   23   patch -p1 -i $SRC/conditional-py-bindings.patch
   24 
   25   # Removed a function which had no declaration
   26   patch -p1 -i $SRC/badfunction.patch
   27 
   28   sed -i -e 's/ -Werror//' src/Makefile.am
   29   NOCONFIGURE=1 ./autogen.sh
   30   export CSC='/usr/bin/mcs'
   31   CXXFLAGS="$CXXFLAGS -std=c++11" \
   32   ./configure --prefix=/usr \
   33     --localstatedir=/var \
   34     --disable-{gtk-doc-html,python,mono-test,static,tests} \
   35     --with-gtk=2
   36   sed -e 's/DIST_SUBDIRS = vala python mono/DIST_SUBDIRS = vala mono/g' \
   37     -e 's/am__append_1 = python//g' \
   38     -i bindings/Makefile
   39   make
   40   make DESTDIR=$PKG -j1 -C bindings/mono install
   41 }

Generated by cgit