updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mc-git / PKGBUILD
blobb9543bd21bad19ab8b82efe17ba5d5e56f3286d2
1 # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
2 # Contributor: Tsekhovoy Eugene aka Krash <8552246@gmail.com>
4 pkgname=mc-git
5 pkgver=20120125
6 pkgrel=1
7 pkgdesc='GNU Midnight Commander is a s-lang based file manager'
8 url='https://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='https://github.com/MidnightCommander/mc.git'
17 _gitname='mc'
19 build() {
20   if [[ -d $_gitname ]]; then
21     cd $_gitname
22     git clean -qfd
23     git pull -v origin
24   else
25     git clone -v $_gitroot
26     cd $_gitname
27   fi
28   # http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=dcui/mc&id=338da10abcd744ab75dfb184f8f81370727e5653
29   sed -i 's/pkglibexec_SCRIPTS = $(SCRIPTS_OUT)/pkgdata_SCRIPTS = $(SCRIPTS_OUT)/g' contrib/Makefile.am
30   ./autogen.sh
31   export MCREVISION=$(git describe --tags)
32   ./configure                     \
33       --prefix=/usr               \
34       --sysconfdir=/etc           \
35       --libexecdir=/usr/lib       \
36       --enable-background         \
37       --enable-network            \
38       --enable-netcode            \
39       --enable-charset            \
40       --enable-nls                \
41       --with-vfs                  \
42       --with-edit                 \
43       --with-screen=slang         \
44       --without-x                 \
45       --without-samba             \
46       --without-gpm-mouse         \
47       --without-gnome             \
48       --without-debug             \
49       --without-included-gettext  \
50       --disable-dependency-tracking
51   make
54 package() {
55     cd $_gitname
56     make DESTDIR="$pkgdir" install
59 # vim:set ts=2 sw=2 ft=sh et: