push的PKGBUILD 用于 eix-remote update


# Maintainer: Guns N Rose<zlbgps gmail.com>
pkgname=push-git
_pkgname=push
pkgver=20130716
pkgrel=1
pkgdesc="A POSIX shell function to treat a variable like an array, quoting args."
arch=(any)
url="https://github.com/vaeth/push/"
license=('BSD')
depends=('bash')
makedepends=('git')
#provides=('bash-push')
options=(!emptydirs)
install=
changelog=
source=()
noextract=()
md5sums=()
_gitroot="git://github.com/vaeth/push"
_gitname="push"
build() {
  cd "$srcdir"
  msg "Connecting to GIT server..."
  if [ -d "$_gitname" ] ; then
    cd "$_gitname" && git pull origin
    cd "$srcdir"
    msg "The local files are updated."
  else
    git clone --depth=1 "$_gitroot" "$_gitname"
  fi
  msg "GIT checkout done or server timeout"
  cd "$srcdir/${_pkgname}"
}
package() {
  cd "$srcdir/${_pkgname}"
  install -Dd $pkgdir/usr/bin
  install -D -m755 push.sh $pkgdir/usr/bin/push.sh
}
# vim:set ts=2 sw=2 et:


你可能感兴趣的:(#gentoo,#archlinux)