1 #Contributor: Stiletto <blasux@blasux.ru>
5 pkgdesc="A filemanager/shell that emulates Norton Commander. Fork by slavaz."
7 provides=('mc' 'mc-utf8')
10 url="http://mc.redhat-club.org/"
11 depends=('e2fsprogs' 'glib2' 'pcre' 'gpm>=1.20.4' 'slang')
12 makedepends=('subversion' 'sed' 'libxt' 'libx11')
13 options=('!emptydirs' '!makeflags')
17 _svntrunk=http://mc.redhat-club.org/svn/trunk
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
29 # Prevent lazy bindings in cons.saver binary.
30 # - not using bindnow-flags() because cons.saver is only built on GNU/Linux
31 sed -i -e "s:^\(cons_saver_LDADD = .*\):\1 -Wl,-z,now:" src/Makefile.in
33 ./configure --prefix=/usr --mandir=/usr/share/man \
34 --without-gnome --without-debug --with-screen=slang --without-included-gettext \
35 --enable-largefile --with-subshell --with-edit --with-vfs --with-samba --with-mmap \
36 --with-x --with-gpm-mouse --enable-charset
38 make DESTDIR=${pkgdir} install