[arch-commits] Commit in (4 files)

Daurnimator daurnimator at archlinux.org
Fri Aug 16 08:57:55 UTC 2019


    Date: Friday, August 16, 2019 @ 08:57:54
  Author: daurnimator
Revision: 499824

Add lua-argparse package

Added:
  lua-argparse/
  lua-argparse/repos/
  lua-argparse/trunk/
  lua-argparse/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: lua-argparse/trunk/PKGBUILD
===================================================================
--- lua-argparse/trunk/PKGBUILD	                        (rev 0)
+++ lua-argparse/trunk/PKGBUILD	2019-08-16 08:57:54 UTC (rev 499824)
@@ -0,0 +1,34 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=('lua-argparse' 'lua51-argparse' 'lua52-argparse')
+pkgver=0.7.0
+pkgrel=1
+arch=('any')
+url='https://github.com/luarocks/argparse'
+license=('MIT')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/luarocks/argparse/archive/$pkgver.tar.gz")
+md5sums=('ce85aef727ae550746c7d742c781cc28')
+
+package_lua-argparse() {
+	pkgdesc='Feature-rich command line parser for Lua 5.3'
+
+	cd "argparse-$pkgver"
+	install -Dm644 src/argparse.lua "$pkgdir/usr/share/lua/5.3/argparse.lua"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_lua51-argparse() {
+	pkgdesc='Feature-rich command line parser for Lua 5.1'
+
+	cd "argparse-$pkgver"
+	install -Dm644 src/argparse.lua "$pkgdir/usr/share/lua/5.1/argparse.lua"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_lua52-argparse() {
+	pkgdesc='Feature-rich command line parser for Lua 5.2'
+
+	cd "argparse-$pkgver"
+	install -Dm644 src/argparse.lua "$pkgdir/usr/share/lua/5.2/argparse.lua"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list