# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

_pkgname=git-svn-abandon
pkgname=$_pkgname-git

pkgver=20100319
_gitver=42014bf555fdac67c8c82ed69c4733ab9dba0c8a

provides=($_pkgname)
conflicts=($_pkgname)

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"
license=('MIT')
depends=('git')
makedepends=('git' 'python-markdown')

source=("libre://git-svn-abandon-$_gitver.tar.gz")
mksource=("git+https://github.com/nothingmuch/git-svn-abandon.git#commit=$_gitver")

build() {
  cd "$srcdir/$_pkgname"
  markdown README.mkdn > README.html
}

package() {
  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/$_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')