build_startup-notification() { HERE=`pwd` . ./xcb-util-sc.inc || exit 1 . ./libx11-xcb-sc.inc || exit 1 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib:/apps/gtk2/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk2/include" export PATH="$PKGPATH/bin:/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/xcb-util ]; then build_xcb-util "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libx11-xcb ]; then build_libx11-xcb "$PKGPATH" || exit 1 fi tar xvf startup-notification-0.12.tar.gz || exit 1 cd startup-notification-0.12 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/startup-notification }