summaryrefslogtreecommitdiff
path: root/pcr/shflags
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-21 17:59:11 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-21 17:59:11 +0100
commit523e25d00295582a636336f9d217aac5bd5e3a64 (patch)
treebf5f67a625101bce74c9eb3a33bb38f5515c26e4 /pcr/shflags
parente0e29b610c028963a9354160124f5a319bb2172b (diff)
downloadabslibre-523e25d00295582a636336f9d217aac5bd5e3a64.tar.gz
abslibre-523e25d00295582a636336f9d217aac5bd5e3a64.tar.bz2
abslibre-523e25d00295582a636336f9d217aac5bd5e3a64.zip
pcr/shflags: updated to 1.2.3
Diffstat (limited to 'pcr/shflags')
-rw-r--r--pcr/shflags/PKGBUILD36
1 files changed, 14 insertions, 22 deletions
diff --git a/pcr/shflags/PKGBUILD b/pcr/shflags/PKGBUILD
index c4f3ee7a9..fec7afeaf 100644
--- a/pcr/shflags/PKGBUILD
+++ b/pcr/shflags/PKGBUILD
@@ -1,31 +1,23 @@
-#Maintainer max_meyer
+# Maintainer max_meyer
+
pkgname=shflags
-pkgver=1.0.3
+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=('LGPL')
-depends=(sh)
-provides=(shflags)
-optdepends=(bash zsh dash ksh)
-options=(zipman)
-source=(http://shflags.googlecode.com/files/$pkgname-$pkgver.tgz{,.sig})
-md5sums=('b4d7133696ec05b71b27d8df5e278f0f'
- 'SKIP')
-
-package() {
- src="$srcdir/$pkgname-$pkgver/src/"
- dst="$pkgdir/usr/share/lib/shflags"
- mkdir -p "$dst"
+license=('Apache')
+source=($pkgname-$pkgver.tar.gz::https://github.com/kward/shflags/archive/v$pkgver.tar.gz)
+sha256sums=('4467970909f354897c79394c6fa96e57fde307638f35ee6ea4eec3c679763dc1')
- if [ -f "$src/shflags" ]; then
- cp "$src/shflags" "$dst/shflags.sh"
- else
- msg "Warning shflags not found"
- exit 1
- fi
+check() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./test_runner
}
-# vim:set ts=2 sw=2 et:
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ install -Dm644 shflags "$pkgdir"/usr/share/lib/shflags
+}