summaryrefslogtreecommitdiff
path: root/newapkbuild.in
AgeCommit message (Collapse)AuthorFilesLines
2019-03-06newapkbuild: add default check to CMake and RelWithDebugInfo typeA. Wilcox1-1/+6
2018-10-03newapkbuild: fix checksums to be last in ABPKUILDNatanael Copa1-0/+3
ref https://github.com/alpinelinux/abuild/pull/42
2018-09-24newapkbuild: use https for sourceforge download linksprspkt1-1/+1
2018-07-29newapkbuild: fix default check function for python3Jakub Jirutka1-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`.
2018-06-21newapkbuild: check arguments and improve usage()Oliver Smith1-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 ```
2018-05-24newapkbuild: move checksum call to after fetchA. Wilcox1-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.
2018-05-24newapkbuild: fix typoA. Wilcox1-1/+1
2018-05-07newapkbuild: create check() functionJakub Jirutka1-0/+30
2018-05-07newapkbuild: change python to python3Jakub Jirutka1-4/+4
2017-12-30newapkbuild: fix typoOliver Smith1-1/+1
2017-10-28newapkbuild.in: fix package_meson by escaping $pkgdirSören Tempel1-1/+1
2017-10-19newapkbuild: use make 'package' phase for CMake as wellA. Wilcox1-1/+1
2017-10-19newapkbuild: always set makedepends in newaportSören Tempel1-7/+6
2017-10-19newapkbuild: add command line flag for cmake to getoptsSören Tempel1-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.
2017-10-19newapkbuild: add support for mesonSören Tempel1-3/+36
2017-09-28newapkbuild: detect CMakeLists.txt file for CMakeA. Wilcox1-1/+1
Some CMake packages do not have cmake/ directory, but all have CMakeLists.txt present in the root directory.
2017-06-23newapkbuild: fix usage outputA. Wilcox1-1/+2
2017-05-19newapkbuild: fix build_cmake template - escape parametersJakub Jirutka1-3/+2
2017-04-05remove explicit `|| return 1` from all sample APKBUILDsSören Tempel1-15/+13
Those statement are no longer needed because abuild now runs with `set -e` by default. See also: 36d5193776180385a39626a83241822736a5f6b8
2016-08-23indent heredocs when possibleJakub Jirutka1-19/+19
2016-08-20add .editorconfig and fix code formattingJakub Jirutka1-2/+1
2016-06-20newapkbuild: redirect find(1) stderr to /dev/nullSören Tempel1-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.
2016-06-13newapkbuild: remove trailing spacesJakub Jirutka1-2/+2
2016-06-13newapkbuild: add empty line after builddir= and quote whole valueJakub Jirutka1-3/+1
2016-06-13newapkbuild: omit depends_dev if no *.h or *.hpp file foundJakub Jirutka1-0/+6
2016-06-13newapkbuild: fix undefined variable $_builddirJakub Jirutka1-1/+1
2016-03-23newapkbuild: rename _builddir to builddirNatanael Copa1-6/+6
the _builddir should never been used bu abuild due to the _ prefix.
2016-02-22newapkbuild: remove default prepare()Michael Zuo1-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.
2015-11-30newapkbuild: dont set CXX/C COMPILERNatanael Copa1-3/+1
cmake is normally able to figure it out and setting them may break ccache.
2015-11-30newapkbuild: do not add --infodirNatanael Copa1-1/+0
normally not used
2015-09-15newapkbuild: *.la files are removed by defaultBartłomiej Piotrowski1-1/+0
2015-05-27newapkbuild: add CMake support.Isaac Dunham1-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.
2014-03-31fix permissionsNatanael Copa1-0/+0
2013-11-21newapkbuild: detect github archivesNatanael Copa1-1/+16
2013-10-25newapkbuild: cosmetic fix for help messageNatanael Copa1-1/+2
2013-10-25functions: rename abuild_ver to program_versionNatanael Copa1-2/+2
2013-10-25functions: rename prog to programNatanael Copa1-2/+2
2013-08-01newapkbuild: add --build and --host optionsNatanael Copa1-1/+4
2013-07-09various: use long options, rework usagesDubiousjim1-17/+18
2013-07-09various: move conf-loading and i/o to functionsDubiousjim1-14/+7
2013-07-08various: tweak opening comments, whitespaceDubiousjim1-4/+2
Also remove incomplete efforts at listing "Depends on: ..."
2013-02-20newapkbuild: https is also an urlNatanael Copa1-1/+1
2011-12-21newapkbuild: add -n option for setting nameNatanael Copa1-15/+21
So we can set pkgname if it differs from download archive name
2011-06-28newapkbuild: use -y for python instead of -qNatanael Copa1-3/+3
2011-06-28newapkbuild: build and package sections for 'make' buildtypeNatanael Copa1-1/+15
This buildtype is when there is a simple Makefile only.
2011-06-28newapkbuild: not only autotools packages can have init.d scriptsNatanael Copa1-9/+9
2011-06-28newapkbuild: rename config_* functions to build_*Natanael Copa1-6/+6
We call make as well as needed so build_* is better function name.
2011-06-28Added python as a new templateFabian Affolter1-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.
2011-06-06newapkbuild: fix previous commitNatanael Copa1-1/+1
2011-06-03newapkbuild: remove libtool archivesNatanael Copa1-0/+1