updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / git-ftp-git / PKGBUILD
blobc4870f6f04c3ada08e3153866bf84e23e9e06cff
1 # Contributor: Kamil Stachowski <kamil.stachowski@gmail.com>
3 pkgname=git-ftp-git
4 pkgver=20110330
5 pkgrel=1
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'
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('git')
11 optdepends=()
12 provides=('git-ftp-git')
13 conflicts=()
14 replaces=()
15 source=()
16 md5sums=()
18 _gitname='git-ftp'
19 _gitroot='git://github.com/resmo/git-ftp.git'
21 build() {
22         msg "Connecting to Git server..."
23         if [ -d "$srcdir/$pkgname" ]; then
24                 cd "$srcdir/$pkgname" && git pull origin || return 1
25         else
26                 git clone "$_gitroot" || return 1
27         fi
28         msg "Git checkout done or server timeout"
31 package() {
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"
40         msg "\n\n"
41         msg "WARNING:"
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"