summaryrefslogtreecommitdiff
path: root/newapkbuild.in
AgeCommit message (Collapse)AuthorFilesLines
2019-11-07allow override sharedir for testingNatanael Copa1-1/+1
Aloow overrid sharedir with global ABUILD_SHAREDIR so we test the local functions.sh instead of a system installed functions.sh
2019-11-07rename datadir -> sharedirNatanael Copa1-8/+8
abuild uses datadir as local variable in various functions. Rename the global datadir to sharedir to avoid confusion.
2019-10-27newapkbuild: simplify source URL derived from GitHub URLJakub Jirutka1-1/+1
GitHub allows to reference https://github.com/<user>/<proj>/archive/<ver>.tar.gz also as https://github.com/<user>/<proj>/archive/<ver>/<anything>.tar.gz.
2019-10-27newapkbuild: run cargo install with --lockedJakub Jirutka1-1/+1
This forces cargo to install the exact versions of the dependencies specified in Cargo.lock. This is essential for reproducible builds!
2019-10-01newapkbuild: add rust supportRasmus Thomsen1-2/+32
2019-07-17newapkbuild: make python packages only depend on setuptoolsNatanael Copa1-1/+1
They normally don't need the python3-dev.
2019-07-17newapkbuild: add py3-setuptools to python apkbuildRuss1-1/+1
Seeing as the default python build/check/package apkbuild functions call `setup.py` and that relies on `py3-setuptools`, perhaps it should be added to the makedepends. Inspiration from https://github.com/alpinelinux/aports/pull/7641#pullrequestreview-234326397
2019-06-12newapkbuild: use current directory for cmakeRuss1-1/+1
2019-06-12newapkbuild: quote pkgname and pkgvertcely1-2/+2
These are strings after all and should be quoted even if not strictly necessary because of tradition excluding spaces from package names.
2019-06-12newapkbuild.in: add default check() for meson packages.Leo1-0/+6
2019-06-12Cosmetic: newapkbuild: comment for check sectionsOliver Smith1-0/+1
Add a '# Check sections' comment, for consistency with the equally commented build and package sections.
2019-06-12newapkbuild: fix empty function regressionOliver Smith1-0/+27
Since the obsolete 'cd "$builddir"' statements have been removed in [1], build(), check() and package() can generate empty functions if no build system is specified or if there is no default for the given build system. newapkbuild will then fail, as it tries to parse the script it generated: $ cd /home/pmos && newapkbuild test /usr/bin/abuild: /home/pmos/test/APKBUILD: line 18: syntax error: unexpected "}" $ cat test/APKBUILD ... build() { } ... Fix this by placing ":" in functions that would be empty. [1]: f83d19ce79ab9f2dcc5238346a910cd18ae0f330
2019-04-29newapkbuild: remove obsolete cd statementsIkke1-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.
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