public
Created

updated PKGBUILD for mr

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
# Maintainer: Nicolas Pouillard (http://nicolaspouillard.fr)
# Contributors: Peter Simons <simons@cryp.to>, Andreas Hilboll <andreas@hilboll.de>
pkgname=mr
pkgver=1.08
pkgrel=1
pkgdesc='Checkout, update, or perform other actions on a set of VC repositories.'
arch=('any')
url='http://kitenet.net/~joey/code/mr/'
license=('GPL2')
depends=('perl' 'perl-libwww' 'perl-html-parser' 'perl-uri')
makedepends=('git' 'rsync')
optdepends=('git: support for git repositories'
'cvs: support for cvs repositories'
'svn: support for subversion repositories'
'mercurial: support for mercurial repositories'
'bzr: support for bzr repositories'
'darcs: support for darcs repositories')
 
build()
{
local _gitroot='git://git.kitenet.net/mr'
 
cd "${srcdir}"
if [ -d mr ] ; then
cd mr
git checkout master
git pull origin
else
git clone --depth=1 "${_gitroot}"
fi
cd "${srcdir}/mr"
git checkout "${pkgver}"
rsync -aH --del "${srcdir}/mr/" "${srcdir}/build/"
cd "${srcdir}/build"
make
}
 
check()
{
cd "${srcdir}/build"
make test
}
 
package()
{
cd "${srcdir}/build"
install -m755 -D mr "${pkgdir}/usr/bin/mr"
install -m755 -D webcheckout "${pkgdir}/usr/bin/webcheckout"
install -m644 -D mr.1 "${pkgdir}/usr/share/man/man1/mr.1"
install -m644 -D webcheckout.1 "${pkgdir}/usr/share/man/man1/webcheckout.1"
install -m644 -D README "${pkgdir}/usr/share/doc/${pkgname}/README"
install -m644 -D lib/vcsh "${pkgdir}/usr/share/mr/git-fake-bare"
install -m644 -D lib/vcsh "${pkgdir}/usr/share/mr/git-subtree"
install -m644 -D lib/vcsh "${pkgdir}/usr/share/mr/git-svn"
install -m644 -D lib/vcsh "${pkgdir}/usr/share/mr/unison"
install -m644 -D lib/vcsh "${pkgdir}/usr/share/mr/vcsh"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.