public
Created

updated PKGBUILD for pristine-tar-git

  • Download Gist
gistfile1.sh
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
# Maintainer: Jimmy Tang <jtang@tchpc.tcd.ie>
 
pkgname=pristine-tar-git
pkgver=20121127
pkgrel=1
pkgdesc="pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a copy of the source which can be a revision control checkout."
arch=('i686' 'x86_64')
url="http://git.kitenet.net/?p=pristine-tar.git"
license=('GPL')
makedepends=('git')
depends=('perl')
 
_gitroot="git://git.kitenet.net/pristine-tar.git"
_gitname="pristine-tar"
 
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
 
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
 
msg "GIT checkout done or server timeout"
msg "Starting make..."
 
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
 
export PATH=/usr/bin/core_perl:$PATH
 
perl Makefile.PL
make
make install DESTDIR=$pkgdir
install -d $pkgdir/usr/share/doc/pristine-tar
install -D GPL TODO delta-format.txt $pkgdir/usr/share/doc/pristine-tar
}
 
# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.