## It failed to build for me with the following error. Maybe my version
## of Qt is too new (3.3.4), maybe my version of gcc (4.x). It doesn't seem
## to be actively in development any more, and I don't really need QtParted
## for anything, so I just gave up. If you have the solution, let me know
## and I'll post it here. I would just remove this howto, but a few
## people asked me for this one.
# qp_fswrap.cpp: In static member function 'static QString QP_FSFat32::_get_
# qp_fswrap.cpp:1005: error: 'PED_SECTOR_SIZE' was not declared in this scop
# qp_fswrap.cpp:1008: error: 'buffer' was not declared in this scope
# qp_fswrap.cpp: In static member function 'static QString QP_FSNtfs::_get_l
# qp_fswrap.cpp:1077: warning: unused variable 'qwTotalSectorsCount'
# qp_fswrap.cpp: In static member function 'static QString QP_FSFat32::_get_
# qp_fswrap.cpp:1019: warning: control reaches end of non-void function
cd
test -f installed/qtparted-0.4.5.tar.bz2 &&
mv installed/qtparted-0.4.5.tar.bz2 .
test ! -f qtparted-0.4.5.tar.bz2 &&
wget http://download.sf.net/qtparted/qtparted-0.4.5.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "qtparted-*" -exec rm -r {} \;
tar xjvf ~/qtparted-0.4.5.tar.bz2
cd qtparted-0.4.5
test $UID = 0 && chown -R root:root .
# If you don't want to have to use unsermake, run this first
make -f admin/Makefile.common
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 src installed
rm -f installed/qtparted-*.tar.*
mv qtparted-0.4.5.tar.bz2 installed/