1 # Maintainer: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
3 pkgname=ruby-smarbs-git
4 _pkgname="${pkgname:5:6}"
7 pkgdesc="smarbs is a backup script written in ruby capable of doing intelligent and automated backups using rsync."
9 url="http://smarbs.sourceforge.net"
11 depends=("rsync" "ruby" "coreutils")
12 makedepends=("rubygems")
13 optdepends=("ruby-gtk2: For status icon while backupping."
14 "syslog-ng: For syslog functionality.")
15 conflicts=("${pkgname:0:11}")
16 provides=("${pkgname:0:11}")
20 _gitroot="git://smarbs.git.sourceforge.net/gitroot/smarbs/smarbs"
21 _gitname="${_pkgname}"
26 msg "Connecting to GIT server over HTTP..."
27 if [[ -d "${_gitname}" ]]; then
28 (cd "${_gitname}" && git pull origin)
29 msg "The local repository was updated."
31 git clone "${_gitroot}" "${_gitname}"
32 msg "The remote repository was cloned."
34 msg "GIT sync done or server timeout."
39 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
40 gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" \
41 "${srcdir}/${_gitname}/pkg/${_pkgname}*.gem" -n "${pkgdir}/usr/bin"
43 rm -rf "${srcdir}/${_pkgname}/pkg/"
45 # vim:set ts=2 sw=2 et: