build_transmission-gtk3(){ HERE=`pwd` . ./curl-sc.inc . ./openssl-sc.inc . ./libevent-sc.inc BUILDDEPS="intltool.tcz compiletc.tcz Xorg-7.6-dev.tcz" #DEPS= for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib -L/apps/gtk3/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk3/include" export PATH="$PKGPATH/bin:/apps/gtk3/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk3/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib:/apps/gtk3/lib" if [ ! -f "$TMPDIR"/openssl ]; then build_openssl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/curl ]; then build_curl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libevent ]; then build_libevent "$PKGPATH" || exit 1 fi tar xvf transmission-2.42.tar.xz cd transmission-2.42 ./configure --prefix="$PKGPATH" make make install #mv "$PKGPATH"/bin/gqview "$PKGPATH"/bin/gqview-bin #echo "#!/bin/sh" > "$PKGPATH"/bin/gqview #echo " " >> "$PKGPATH"/bin/gqview #echo "export LD_LIBRARY_PATH="$PKGPATH/lib:$LD_LIBRARY_PATH"" >> "$PKGPATH"/bin/gqview #echo "export PATH="$PKGPATH/bin:$PATH"" >> "$PKGPATH"/bin/gqview #echo " " >> "$PKGPATH"/bin/gqview #echo "$PKGPATH/bin/gqview-bin \"\$@\"" >> "$PKGPATH"/bin/gqview #echo " " >> "$PKGPATH"/bin/gqview #chmod +x "$PKGPATH"/bin/gqview touch "$TMPDIR"/transmission-gtk3 cd "$HERE" }