build_pcmanfm-basic() { HERE=`pwd` . ./desktop-file-utils-sc.inc || exit 1 . ./xcb-util-sc.inc || exit 1 . ./lxmenu-data-sc.inc || exit 1 . ./menu-cache-sc.inc || exit 1 . ./startup-notification-sc.inc || exit 1 . ./libfm-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"/desktop-file-utils ]; then build_desktop-file-utils "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/xcb-util ]; then build_xcb-util "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/lxmenu-data ]; then build_lxmenu-data "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/menu-cache ]; then build_menu-cache "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/startup-notification ]; then build_startup-notification "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libfm ]; then build_libfm "$PKGPATH" || exit 1 fi tar xvf pcmanfm-0.9.10.tar.gz || exit 1 cd pcmanfm-0.9.10 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/pcmanfm-basic }