summaryrefslogtreecommitdiffstats
path: root/newapkbuild.in
Commit message (Collapse)AuthorAgeFilesLines
* newapkbuild: remove obsolete cd statementsIkke2019-04-291-3/+0
| | | | Since `$builddir` is officially supported and abuild automatically cd's to `$builddir`, it does not need to be part of the template anymore.
* newapkbuild: fix checksums to be last in ABPKUILDNatanael Copa2018-10-031-0/+3
| | | | ref https://github.com/alpinelinux/abuild/pull/42
* newapkbuild: use https for sourceforge download linksprspkt2018-09-241-1/+1
|
* newapkbuild: fix default check function for python3Jakub Jirutka2018-07-291-1/+1
| | | | | `setup.py check` does not run package tests, it performs just some check of the package metadata. The correct command is `setup.py test`.
* newapkbuild: check arguments and improve usage()Oliver Smith2018-06-211-18/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ```
* newapkbuild: move checksum call to after fetchA. Wilcox2018-05-241-2/+1
| | | | | | | | | | unpack will no longer unpack without a checksum, even with -f. This means that newapkbuild will not be able to deduce what kind of build system is contained within, so the templates for CMake, Perl, etc are never used. This patch ensures checksumming is done right after fetch, so that unpack works properly.
* newapkbuild: fix typoA. Wilcox2018-05-241-1/+1
|
* newapkbuild: create check() functionJakub Jirutka2018-05-071-0/+30
|
* newapkbuild: change python to python3Jakub Jirutka2018-05-071-4/+4
|
* newapkbuild: fix typoOliver Smith2017-12-301-1/+1
|
* newapkbuild.in: fix package_meson by escaping $pkgdirSören Tempel2017-10-281-1/+1
|
* newapkbuild: use make 'package' phase for CMake as wellA. Wilcox2017-10-191-1/+1
|
* newapkbuild: always set makedepends in newaportSören Tempel2017-10-191-7/+6
|
* newapkbuild: add command line flag for cmake to getoptsSören Tempel2017-10-191-1/+1
| | | | | | It is documented in the help output but didn't work because getopts(1) didn't check for that option. I am assuming the person who added cmake support simply forgot to adjust the getopts line.
* newapkbuild: add support for mesonSören Tempel2017-10-191-3/+36
|
* newapkbuild: detect CMakeLists.txt file for CMakeA. Wilcox2017-09-281-1/+1
| | | | | Some CMake packages do not have cmake/ directory, but all have CMakeLists.txt present in the root directory.
* newapkbuild: fix usage outputA. Wilcox2017-06-231-1/+2
|
* newapkbuild: fix build_cmake template - escape parametersJakub Jirutka2017-05-191-3/+2
|
* remove explicit `|| return 1` from all sample APKBUILDsSören Tempel2017-04-051-15/+13
| | | | | | | Those statement are no longer needed because abuild now runs with `set -e` by default. See also: 36d5193776180385a39626a83241822736a5f6b8
* indent heredocs when possibleJakub Jirutka2016-08-231-19/+19
|
* add .editorconfig and fix code formattingJakub Jirutka2016-08-201-2/+1
|
* newapkbuild: redirect find(1) stderr to /dev/nullSören Tempel2016-06-201-1/+1
| | | | | | | | | | | If $sdir is not defined find writes an error message to stderr. For example when running: newapkbuild -n foo -a foo You will see a find error message because no source url was provided. This commit silences any find error message. An alternative solution would be to not invoke find unless $sdir is set.
* newapkbuild: remove trailing spacesJakub Jirutka2016-06-131-2/+2
|
* newapkbuild: add empty line after builddir= and quote whole valueJakub Jirutka2016-06-131-3/+1
|
* newapkbuild: omit depends_dev if no *.h or *.hpp file foundJakub Jirutka2016-06-131-0/+6
|
* newapkbuild: fix undefined variable $_builddirJakub Jirutka2016-06-131-1/+1
|
* newapkbuild: rename _builddir to builddirNatanael Copa2016-03-231-6/+6
| | | | the _builddir should never been used bu abuild due to the _ prefix.
* newapkbuild: remove default prepare()Michael Zuo2016-02-221-15/+0
| | | | | | Do not add prepare() to new APKBUILDs in the future, as this functionality is superseded by the addition of the default prepare patcher in abuild.
* newapkbuild: dont set CXX/C COMPILERNatanael Copa2015-11-301-3/+1
| | | | | cmake is normally able to figure it out and setting them may break ccache.
* newapkbuild: do not add --infodirNatanael Copa2015-11-301-1/+0
| | | | normally not used
* newapkbuild: *.la files are removed by defaultBartłomiej Piotrowski2015-09-151-1/+0
|
* newapkbuild: add CMake support.Isaac Dunham2015-05-271-0/+32
| | | | | | This is a first try that *might* work for cross-compiling packages with an absolute bare minimum of requirements, if you're lucky. I can't debug that part further, but the references should help with it.
* fix permissionsNatanael Copa2014-03-311-0/+0
|
* newapkbuild: detect github archivesNatanael Copa2013-11-211-1/+16
|
* newapkbuild: cosmetic fix for help messageNatanael Copa2013-10-251-1/+2
|
* functions: rename abuild_ver to program_versionNatanael Copa2013-10-251-2/+2
|
* functions: rename prog to programNatanael Copa2013-10-251-2/+2
|
* newapkbuild: add --build and --host optionsNatanael Copa2013-08-011-1/+4
|
* various: use long options, rework usagesDubiousjim2013-07-091-17/+18
|
* various: move conf-loading and i/o to functionsDubiousjim2013-07-091-14/+7
|
* various: tweak opening comments, whitespaceDubiousjim2013-07-081-4/+2
| | | | Also remove incomplete efforts at listing "Depends on: ..."
* newapkbuild: https is also an urlNatanael Copa2013-02-201-1/+1
|
* newapkbuild: add -n option for setting nameNatanael Copa2011-12-211-15/+21
| | | | So we can set pkgname if it differs from download archive name
* newapkbuild: use -y for python instead of -qNatanael Copa2011-06-281-3/+3
|
* newapkbuild: build and package sections for 'make' buildtypeNatanael Copa2011-06-281-1/+15
| | | | This buildtype is when there is a simple Makefile only.
* newapkbuild: not only autotools packages can have init.d scriptsNatanael Copa2011-06-281-9/+9
|
* newapkbuild: rename config_* functions to build_*Natanael Copa2011-06-281-6/+6
| | | | We call make as well as needed so build_* is better function name.
* Added python as a new templateFabian Affolter2011-06-281-32/+74
| | | | | | With -q ('-q' for the moment, please change that) a template APKBUILD file for a python module is created. 'depends' and 'makedepends' are filled with standard values.
* newapkbuild: fix previous commitNatanael Copa2011-06-061-1/+1
|
* newapkbuild: remove libtool archivesNatanael Copa2011-06-031-0/+1
|