1 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
2 # Contributor: Bruenig <Matthew (dot) Bruenig (at) Gmail (dot) com>
5 pkgname=${basename}-color
8 pkgdesc="Adds AUR support to 'pacman' | Adds better colourisation and error handling to 'packer'"
9 url="http://github.com/bruenig/${basename}"
13 depends=("grep" "sed" "bash" "curl" "pacman-color" "jshon")
14 optdepends=("sudo: install and update packages as non-root"
15 "customizepkg: apply customizepkg modifications")
17 _gitroot="http://github.com/bruenig/${basename}.git"
18 _gitname="${basename}"
24 msg "Connecting to GIT server ..."
25 if [ -d "${srcdir}/${_gitname}" ] ; then
26 cd ${_gitname} && git pull origin
28 git clone "${_gitroot}"
33 patch -Np1 < "${startdir}"/${pkgname}.patch
36 sed -i 's|packer |packer-color |g' ${basename}
37 sed -i 's|pacman -|pacman-color -|g' ${basename}
38 sed -i 's|runasroot pacman |runasroot pacman-color |g' ${basename}
39 sed -i 's| pacman "| pacman-color "|g' ${basename}
40 sed -i "s|echo \"packer: Option .* is not valid.\"|pacman-color \"\$\@\"|g" ${basename}
47 install -D -m755 ${basename} "${pkgdir}/usr/bin/${pkgname}"
48 install -D -m644 ${basename}.8 "${pkgdir}/usr/share/man/man8/${pkgname}.8"