updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / mc-git / PKGBUILD
blob3f487b863271a9da4f700cdfd2f54d91d638ab62
1 # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
2 # Contributor: Tsekhovoy Eugene aka Krash <8552246@gmail.com>
4 pkgname=mc-git
5 pkgver=20110803
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' 'cvs')
13 conflicts=('mc' 'mc-cvs' 'mc-fork-svn' 'mc-mp' 'mc-slavz' 'mc-suse')
14 provides=('mc')
16 _gitroot="http://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 -v origin
26     else
27         git clone -v "${_gitroot}"
28     fi
29     msg "GIT checkout 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 "Starting make..."
61     make || return 1
62     make DESTDIR=${pkgdir} install || return 1
65 # vim:set ts=2 sw=2 ft=sh et: