summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-24 15:43:26 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-24 15:43:26 -0500
commit976b093b36a5c78ec0de8e194c1066f93965e7d3 (patch)
tree4c5fc9ab9a1863d7acb2c652801d89303cc9be65
parentaa3c52ef01f1c52359164f26c1425d5b57d9ec31 (diff)
downloadabslibre-976b093b36a5c78ec0de8e194c1066f93965e7d3.tar.gz
abslibre-976b093b36a5c78ec0de8e194c1066f93965e7d3.tar.bz2
abslibre-976b093b36a5c78ec0de8e194c1066f93965e7d3.zip
add ~lukeshu/git-svn-abandon-git (git-svn-abandon, from github)
-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"
+}