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
8 pkgdesc="A library-based package manager with dependency support and optional panis progress bar"
10 url='http://www.archlinux.org/pacman'
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')
18 backup=('etc/pacman.conf' 'etc/makepkg.conf')
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"
29 msg 'Connecting to GIT server...'
31 if [[ -d $_gitname ]]; then
32 ( cd $_gitname && git pull origin )
33 msg 'The local files are updated.'
38 msg 'GIT checkout done or server timeout'
39 msg 'Starting make...'
42 rm -rf $_gitname-build
44 git clone $_gitname{,-build}
47 patch -d ./src/pacman < ../pacman-panis-patch/panis.patch || return 1
48 msg "Patching panis was successful."
53 --localstatedir=/var \
56 --with-pkg-ext=.pkg.tar.xz \
61 patch -p0 < ../pacman.conf.diff
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')