Skip to content

Instantly share code, notes, and snippets.

@badboy
Created March 14, 2014 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badboy/9546824 to your computer and use it in GitHub Desktop.
Save badboy/9546824 to your computer and use it in GitHub Desktop.
# Maintainer: Guten Ye
# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
pkgname="bats-git"
pkgver=v0.3.1.17.g2476770
pkgrel=1
pkgdesc="Bash Automated Testing System"
arch=("any")
url="https://github.com/sstephenson/bats"
license=("MIT")
makedepends=("git")
source=("git+https://github.com/sstephenson/bats.git")
md5sums=('SKIP')
_gitname='bats'
pkgver() {
cd "$srcdir/$_gitname"
git describe --tags | sed 's/-/./g'
}
package() {
cd "$srcdir/$_gitname"
./install.sh "$pkgdir/usr"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment