Oliver Smith a68354ebc5 newapkbuild: check arguments and improve usage()
Changes:
* argument sanity checks:
  * `PKGNAME[-PKGVER] | SRCURL`
    * check if missing
    * check if specified more than once (see below)
  * specifying more than one buildtype flag
  * `-n` (set pkgname) without using SRCURL as last argument
  * `-s` (sourceforge source) without using PKGNAME as last argument
* Typo fix: exist -> exists
* `usage()`:
  * always print PKGNAME and PKGDESC (instead of NAME and DESC,
    NAME was used in one place and PKGNAME in another)
  * link to <https://spdx.org/licenses/>
  * `-m` (meson) flag was missing in short usage line at the top
  * indicate that the buildtypes are exclusive
  * `-c` flag: remove "to new directory" wording to make the
    message shorter (this should be obvious)
  * remove empty line at the end

NOTE: Before this commit, the `PKGNAME[-PKGVER] | SRCURL` was allowed
to be specified more than once, and the code looped over the arguments.
But this was not documented in `usage()` and had unexpected results:

```
$ newapkbuild first second third
$ tree
.
___ first
    ___ APKBUILD
    ___ first
    ___ ___ APKBUILD
    ___ ___ first
    ___ ___ ___ APKBUILD
    ___ ___ ___ src
    ___ ___ src
    ___ src
```
2018-06-21 15:30:58 +00:00
2018-04-11 14:09:32 +00:00
2017-06-23 11:27:41 +03:00
2016-05-20 10:19:08 +02:00
2017-06-27 14:52:50 +03:00
2018-05-31 16:37:31 +02:00
2017-09-19 11:59:18 +00:00
2016-08-23 00:09:06 +02:00
2016-08-12 15:26:06 +02:00
2016-08-12 15:26:06 +02:00
2018-05-31 16:43:10 +02:00
2016-06-13 12:34:05 +00:00
Description
Build script to build Alpine packages (forked to remove busybox dependency)
1.2 MiB
Languages
Shell 61.4%
Roff 12%
C 10.4%
Perl 9.4%
Ruby 4.9%
Other 1.9%