1 # Maintainer: Dave Reisner <d@falconindy.com>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: godane <slaxemulator@gmail.com.com>
4 # Contributor: Andres Perera <aepd87@gmail.com>
7 (( 42 )) && pkgname=(pacman-git pacman-contrib-git)
10 arch=('i686' 'x86_64')
11 url="http://www.archlinux.org/pacman/"
13 makedepends=('git' 'asciidoc' 'curl>=7.19.4' 'gpgme' 'libarchive>=2.7.1')
14 checkdepends=('python2')
15 options=(!libtool !strip)
19 md5sums=('e72cb52013729f893a5fd20b4c3be71d'
20 '89ecb8f589ae0fe86411ba049784fc7c'
21 '3c94d228b3d8611793a9b407fa87f3b9')
23 _gitroot="git://projects.archlinux.org/pacman.git"
27 msg 'Connecting to GIT server...'
29 if [[ -d $_gitname ]]; then
30 ( cd $_gitname && git pull origin )
31 msg 'The local files are updated.'
36 msg 'GIT checkout done or server timeout'
37 msg 'Starting make...'
39 rm -rf $_gitname-build
40 git clone $_gitname{,-build}
44 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-doc \
45 --enable-git-version --enable-debug
51 cd "$srcdir/$_gitname-build"
56 package_pacman-git() {
57 pkgdesc="A library-based package manager with dependency support. git version."
59 depends=('bash' 'curl>=7.19.4' 'gpgme' 'libarchive>=2.7.1' 'pacman-mirrorlist')
60 optdepends=('fakeroot: for makepkg usage as normal user')
61 backup=(etc/pacman.conf etc/makepkg.conf)
65 cd "$srcdir/$_gitname-build"
67 make DESTDIR=$pkgdir install
69 # install Arch specific stuff
73 install -m644 $srcdir/pacman.conf $pkgdir/etc/pacman.conf
76 install -m644 $srcdir/pacman.conf.x86_64 $pkgdir/etc/pacman.conf
79 install -m644 $srcdir/makepkg.conf $pkgdir/etc/
80 # set things correctly in the default conf file
84 mychost="i686-pc-linux-gnu"
85 myflags="-march=i686 "
89 mychost="x86_64-unknown-linux-gnu"
90 myflags="-march=x86-64 "
93 sed -i $pkgdir/etc/makepkg.conf \
94 -e "s|@CARCH[@]|$mycarch|g" \
95 -e "s|@CHOST[@]|$mychost|g" \
96 -e "s|@CARCHFLAGS[@]|$myflags|g"
98 # install completion files
99 mkdir -p $pkgdir/etc/bash_completion.d/
100 install -m644 contrib/bash_completion $pkgdir/etc/bash_completion.d/pacman
101 mkdir -p $pkgdir/usr/share/zsh/site-functions/
102 install -m644 contrib/zsh_completion $pkgdir/usr/share/zsh/site-functions/_pacman
105 package_pacman-contrib-git() {
107 provides=('pacman-contrib')
108 conflicts=('pacman-contrib')
109 pkgdesc="Utilities for use with the pacman package manager"
122 cd "$srcdir/$_gitname-build/contrib"
123 for script in "${paccontrib[@]}"; do
124 install -Dm755 ${script} ${pkgdir}/usr/bin/${script}
127 install -Dm644 PKGBUILD.vim ${pkgdir}/usr/share/vim/vimfiles/syntax/PKGBUILD.vim
128 install -dm755 ${pkgdir}/usr/share/vim/vimfiles/ftdetect
129 echo "au BufNewFile,BufRead PKGBUILD set filetype=PKGBUILD" \
130 > ${pkgdir}/usr/share/vim/vimfiles/ftdetect/PKGBUILD.vim
133 # vim: set ts=2 sw=2 et: