1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
6 pkgdesc='A simple chroot build environment manager for building RPMs.'
7 url='https://fedorahosted.org/mock/'
10 install=mock-git.install
11 depends=('python2' 'usermode')
14 _gitroot='git://git.fedorahosted.org/git/mock.git'
18 if [ -d ${_gitname} ] ; then
39 make DESTDIR=${pkgdir} install
41 install -d ${pkgdir}/usr/bin
42 ln -s /usr/bin/consolehelper ${pkgdir}/usr/bin/mock
44 mkdir -p ${pkgdir}/var/{lib,cache}/mock
45 chown -R root:mock ${pkgdir}/var/{lib,cache}/mock
46 chmod -R 02755 ${pkgdir}/var/{lib,cache}/mock
48 # fix incorrect shebang
49 sed -i 's_#!/usr/bin/python_&2_' ${pkgdir}/usr/sbin/mock