updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mc-latest / PKGBUILD
blobbab6d1ceb3bc92ec27ea0f9e36f8e57eebc6112e
2 # AKulikov aka akm74 <info@akulikov.org.ua>
4 pkgname=mc-latest
5 pkgver=20111215
6 pkgrel=1
7 pkgdesc="GNU Midnight Commander is a s-lang based file manager"
8 url="http://midnight-commander.org/"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 depends=('glib2' 'slang' 'perl')
12 makedepends=('git' 'pkgconfig' 'automake' 'autoconf' 'cvs')
13 conflicts=('mc' 'mc-cvs' 'mc-fork-svn' 'mc-mp' 'mc-slavz' 'mc-suse')
14 provides=('mc')
16 _gitroot="git://midnight-commander.org/git/mc.git"
17 _gitname="mc"
19 build() {
20     cd ${srcdir}
22     msg "Connecting to the git repository..."
23     if [ -d ${srcdir}/${_gitname} ]; then
24         cd ${_gitname}
25         git pull origin
26     else
27         git clone --depth 1 ${_gitroot}
28     fi
29     msg "Checkout GIT done or server timeout"
31     rm -rf ${srcdir}/${_gitname}-build
32     cp -r  ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
33     cd ${srcdir}/${_gitname}-build
35     ./autogen.sh
37     export MCREVISION="$(git describe --tags)"
39     msg "Configuring..."
40     ./configure                     \
41         --prefix=/usr               \
42         --sysconfdir=/etc           \
43         --libexecdir=/usr/lib       \
44         --enable-background         \
45         --enable-network            \
46         --enable-netcode            \
47         --enable-charset            \
48         --enable-nls                \
49         --with-vfs                  \
50         --with-edit                 \
51         --with-screen=slang         \
52         --without-x                 \
53         --without-samba             \
54         --without-gpm-mouse         \
55         --without-gnome             \
56         --without-debug             \
57         --without-included-gettext  \
58         --disable-dependency-tracking
60     msg "Start make..."
61     make || return 1
62     make DESTDIR=${pkgdir} install || return 1