1 # Contributor: Kamil Stachowski <kamil.stachowski@gmail.com>
6 pkgdesc="A shell script for pushing git tracked changed files to a remote host by FTP"
7 url='https://github.com/resmo/git-ftp/zipball/$pkgver'
12 provides=('git-ftp-git')
19 _gitroot='git://github.com/resmo/git-ftp.git'
22 msg "Connecting to Git server..."
23 if [ -d "$srcdir/$pkgname" ]; then
24 cd "$srcdir/$pkgname" && git pull origin || return 1
26 git clone "$_gitroot" || return 1
28 msg "Git checkout done or server timeout"
32 install -D -m755 "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/bin/$_gitname"
33 install -D -m644 "$srcdir/$_gitname/AUTHORS" "$pkgdir/usr/share/$_gitname/AUTHORS"
34 install -D -m644 "$srcdir/$_gitname/INSTALL.md" "$pkgdir/usr/share/$_gitname/INSTALL.md"
35 install -D -m644 "$srcdir/$_gitname/LICENSE" "$pkgdir/usr/share/$_gitname/LICENSE"
36 install -D -m644 "$srcdir/$_gitname/README.md" "$pkgdir/usr/share/$_gitname/README.md"
37 install -D -m644 "$srcdir/$_gitname/man/git-ftp.1.md" "$pkgdir/usr/share/$_gitname/man/git-ftp.1.md"
38 install -D -m644 "$srcdir/$_gitname/man/Makefile" "$pkgdir/usr/share/$_gitname/man/Makefile"
39 install -D -m644 "$srcdir/$_gitname/man/html/git-ftp.css" "$pkgdir/usr/share/$_gitname/man/html/git-ftp.css"
42 msg "Man page installed in /usr/share/$_gitname as markdown. You can convert it to a man with \"make man\" (requires pandoc).\n\n"