summaryrefslogtreecommitdiff
path: root/pcr/shflags/PKGBUILD
blob: fec7afeaf404b0b90257fef4ddc5a44b7abb6ccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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
}