1 #Maintainer : Jekyll wu <adapte [at] gmail [dot] com>
2 #Contributor: Carbon Jiao <http://archlive-pkg.googlecode.com>
7 url="http://pcmanfm.sourceforge.net/"
8 pkgdesc="Libs also excutable standalone progs, for next generation File manager of the LXDE Desktop"
11 depends=('udisks' 'gtk2' 'glib2' 'vala' 'menu-cache')
12 optdepends=( 'gvfs: To access remote file systems.')
13 makedepends=('git' 'intltool' 'pkgconfig' 'autoconf' 'perl' 'gtk-doc')
17 _gitroot="git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/${pkgname%-git}"
18 _gitname="${pkgname%-git}"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 [ -d "$srcdir/${_gitname}-build" ] && rm -rf "$srcdir/${_gitname}-build"
32 git clone "$srcdir/${_gitname}" "$srcdir/${_gitname}-build"
34 msg "GIT checkout done or server timeout"
36 msg "Start to build..."
37 cd "$srcdir/${_gitname}-build"
39 ./configure --prefix=/usr --sysconfdir=/etc --enable-udisks --with-gnu-ld || return 1
41 # strange: twice make is needed only for makepkg; compiling manually is fine
46 cd "$srcdir/${_gitname}-build"
47 make DESTDIR="$pkgdir/" install
48 #mv $pkgdir/usr/bin/{libfm-demo,libfm}
49 #install -Dm644 $srcdir/${_gitname}.png $pkgdir/usr/share/pixmaps/${_gitname}.png
50 #install -Dm755 $srcdir/${_gitname}.desktop $pkgdir/usr/share/applications/${_gitname}.desktop