updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pacman-panis-git / PKGBUILD
blob6fc5b6e2bba577b697111e2d6c0194dcbac61dbe
1 # Contributor: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: godane <slaxemulator@gmail.com.com>
3 # Contributor: Andres Perera <aepd87@gmail.com>
5 pkgname=pacman-panis-git
6 pkgver=20100702
7 pkgrel=1
8 pkgdesc="A library-based package manager with dependency support and optional panis progress bar"
9 arch=('i686' 'x86_64')
10 url='http://www.archlinux.org/pacman'
11 license=('GPL')
12 groups=('base')
13 depends=('bash' 'libarchive>=2.7.1' 'libfetch>=2.25' 'pacman-mirrorlist')
14 makedepends=('git' 'asciidoc')
15 optdepends=('fakeroot: for makepkg usage as normal user')
16 provides=('pacman')
17 conflicts=('pacman')
18 backup=('etc/pacman.conf' 'etc/makepkg.conf')
19 options=(!libtool)
20 install=pacman.install
21 source=('pacman.conf.diff')
23 _gitroot="git://projects.archlinux.org/pacman.git"
24 _gitpanis="git://github.com/joeDeuce/pacman-panis-patch"
25 _gitpanisname="pacman-panis-patch"
26 _gitname="pacman"
28 build() {
29   msg 'Connecting to GIT server...'
31   if [[ -d $_gitname ]]; then
32     ( cd $_gitname && git pull origin )
33     msg 'The local files are updated.'
34   else
35     git clone $_gitroot
36   fi
38   msg 'GIT checkout done or server timeout'
39   msg 'Starting make...'
41   rm -rf $_gitpanisname
42   rm -rf $_gitname-build
43   git clone $_gitpanis
44   git clone $_gitname{,-build}
45   cd $_gitname-build
46   msg "Patching panis."
47   patch -d ./src/pacman < ../pacman-panis-patch/panis.patch || return 1
48   msg "Patching panis was successful."
50   ./autogen.sh
51   ./configure \
52     --enable-doc \
53     --localstatedir=/var \
54     --prefix=/usr \
55     --sysconfdir=/etc \
56     --with-pkg-ext=.pkg.tar.xz \
57     #
59   make
61   patch -p0 < ../pacman.conf.diff
64 package() {
65   cd $_gitname-build
67   make DESTDIR=$pkgdir install
69   install -Dm644 contrib/bash_completion $pkgdir/etc/bash_completion.d/pacman
70   install -Dm644 contrib/zsh_completion  $pkgdir/usr/share/zsh/site-functions/_pacman
73 md5sums=('c1441f69eb8e9860dfb1f32303ccb1f7')