From d6781664464d20e3d579a2a220c7e102a7defda7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 6 Jul 2013 18:02:42 -0600 Subject: ~lukeshu/git-svn-abandon: fix up --- ~lukeshu/git-svn-abandon-git/PKGBUILD | 44 ++++++++++++++--------------------- 1 file changed, 17 insertions(+), 27 deletions(-) (limited to '~lukeshu') diff --git a/~lukeshu/git-svn-abandon-git/PKGBUILD b/~lukeshu/git-svn-abandon-git/PKGBUILD index fe9f9990c..8df4de38e 100644 --- a/~lukeshu/git-svn-abandon-git/PKGBUILD +++ b/~lukeshu/git-svn-abandon-git/PKGBUILD @@ -2,10 +2,16 @@ _pkgname=git-svn-abandon pkgname=$_pkgname-git + +pkgver=20100319 +_gitver=42014bf555fdac67c8c82ed69c4733ab9dba0c8a + provides=($_pkgname) conflicts=($_pkgname) -pkgver=20120112 + +epoch=1 pkgrel=1 + pkgdesc="History preserving svn to git migration using git-svn." arch=('any') url="http://blog.woobling.org/2009/06/git-svn-abandon.html" @@ -13,39 +19,23 @@ license=('MIT') depends=('git') makedepends=('git' 'python-markdown') -_gitroot=https://github.com/nothingmuch/git-svn-abandon.git -_gitname=$_pkgname +source=("libre://git-svn-abandon-$_gitver.tar.gz") +mksource=("git+https://github.com/nothingmuch/git-svn-abandon.git#commit=$_gitver") 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" "$_gitname" - fi - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" - - # - # BUILD HERE - # + cd "$srcdir/$_pkgname" markdown README.mkdn > README.html } package() { - cd "$srcdir/$_gitname-build" + cd "$srcdir/$_pkgname" install -d "$pkgdir/usr/lib/git-core" install -m755 git-* "$pkgdir/usr/lib/git-core" - install -D -m644 README.mkdn "$pkgdir/usr/doc/git-svn-abandon/README.md" - install -D -m644 README.html "$pkgdir/usr/doc/git-svn-abandon/README.html" - install -D -m644 LICENSE "$pkgdir/usr/licenses/git-svn-abandon/LICENSE" + install -D -m644 README.mkdn "$pkgdir/usr/doc/$_pkgname/README.md" + install -D -m644 README.html "$pkgdir/usr/doc/$_pkgname/README.html" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" } + +mkmd5sums=('SKIP') +md5sums=('c5dfb150c2613d963b17c1e0d80eb115') -- cgit v1.2.3