summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--~lukeshu/git-svn-abandon-git/PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/~lukeshu/git-svn-abandon-git/PKGBUILD b/~lukeshu/git-svn-abandon-git/PKGBUILD
new file mode 100644
index 000000000..51cd83817
--- /dev/null
+++ b/~lukeshu/git-svn-abandon-git/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+_pkgname=git-svn-abandon
+pkgname=$_pkgname-git
+provides=($_pkgname)
+conflicts=($_pkgname)
+pkgver=20111224
+pkgrel=1
+pkgdesc=""
+arch=('any')
+url="http://blog.woobling.org/2009/06/git-svn-abandon.html"
+license=('MIT')
+depends=('git')
+makedepends=('git' 'python-markdown')
+
+_gitroot=https://github.com/nothingmuch/git-svn-abandon.git
+_gitname=$_pkgname
+
+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
+ #
+ markdown README.mkdn > README.html
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ 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"
+}