forked from ports/compat-32
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
# Description: Allow applications to extend a menu via Ayatana indicators in Unity, KDE or Systray
|
|
# URL: https://launchpad.net/libappindicator
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libappindicator-gtk2-32 libappindicator-sharp
|
|
|
|
name=libappindicator-sharp-32
|
|
version=12.10
|
|
release=1
|
|
source=(http://archive.ubuntu.com/ubuntu/pool/universe/liba/libappindicator/libappindicator_12.10.1+20.10.20200706.1.orig.tar.gz
|
|
0001-Glib.Timeout-fix.patch
|
|
0002-Fix-mono-nunit-pkgconfig-name.patch
|
|
0003-Fix-Mono-assemblies-directory.patch
|
|
badfunction.patch
|
|
improved-plasma-support.patch)
|
|
|
|
build() {
|
|
# The next 3 patches shamelessly pinched from Arch
|
|
patch -p1 -i $SRC/0001-Glib.Timeout-fix.patch
|
|
patch -p1 -i $SRC/0002-Fix-mono-nunit-pkgconfig-name.patch
|
|
patch -p1 -i $SRC/0003-Fix-Mono-assemblies-directory.patch
|
|
|
|
# This one is also from Arch(ish), but had to be recreated best it could
|
|
patch -p1 -i $SRC/improved-plasma-support.patch
|
|
|
|
# Removed a function which had no declaration
|
|
patch -p1 -i $SRC/badfunction.patch
|
|
|
|
sed -i -e 's/ -Werror//' src/Makefile.am
|
|
export CSC='/usr/bin/mcs'
|
|
export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig'
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
CXXFLAGS="$CXXFLAGS -std=c++11" \
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--localstatedir=/var \
|
|
--disable-{gtk-doc-html,python,mono-test,static,tests} \
|
|
--with-gtk=2
|
|
|
|
sed -e 's/DIST_SUBDIRS = vala python mono/DIST_SUBDIRS = vala mono/g' \
|
|
-e 's/am__append_1 = python//g' \
|
|
-i bindings/Makefile
|
|
|
|
make
|
|
make DESTDIR=$PKG -C bindings/mono -j1 install
|
|
mv $PKG/usr/lib/mono $PKG/usr/lib32/mono
|
|
}
|