blob: fe9f9990c41a7c2e0ad909c7b216ec2bed4f2699 (
plain)
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
44
45
46
47
48
49
50
51
|
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
_pkgname=git-svn-abandon
pkgname=$_pkgname-git
provides=($_pkgname)
conflicts=($_pkgname)
pkgver=20120112
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')
_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"
}
|