# Maintainer max_meyer

pkgname=shflags
pkgver=1.2.3
pkgrel=1
pkgdesc="Shell Flags (shFlags) is a library written to greatly simplify the handling of command-line flags"
arch=(any)
url="http://code.google.com/p/shflags/"
license=('Apache')
source=($pkgname-$pkgver.tar.gz::https://github.com/kward/shflags/archive/v$pkgver.tar.gz)
sha256sums=('4467970909f354897c79394c6fa96e57fde307638f35ee6ea4eec3c679763dc1')

check() {
  cd "$srcdir"/$pkgname-$pkgver

  ./test_runner
}

package() {
  cd "$srcdir"/$pkgname-$pkgver

  install -Dm644 shflags "$pkgdir"/usr/share/lib/shflags
}
