1 # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
2 pkgname=par2cmdline-git
5 pkgdesc="A file verification and repair tool"
6 url="https://github.com/BlackIkeEagle/par2cmdline"
10 arch=('i686' 'x86_64')
13 if [ -e .githash_${CARCH} ] ; then
14 _gitphash=$(cat .githash_${CARCH})
19 _gitname='par2cmdline'
20 _gitroot='git://github.com/BlackIkeEagle/par2cmdline.git'
23 if [ -d ${srcdir}/${_gitname}/.git ] ; then
24 ( cd ${srcdir}/${_gitname} && git pull origin )
25 msg "The local files are updated."
27 ( git clone --depth 1 ${_gitroot} ${_gitname} )
29 msg "GIT checkout done or server timeout"
32 if [ "${_gitphash}" == $(git show | grep -m 1 commit | sed 's/commit //') ]; then
33 msg "Git hash is the same as previous build"
37 msg "creating build directory"
39 [ -d ${_gitname}-build ] && rm -rf ${_gitname}-build
40 cp -a ${_gitname} ${_gitname}-build
42 msg "Starting make..."
47 automake --add-missing
50 ./configure --prefix=/usr
62 make DESTDIR=$startdir/pkg install
64 git show | grep -m 1 commit | sed 's/commit //' > ${startdir}/.githash_${CARCH}