summaryrefslogtreecommitdiffstats
path: root/newapkbuild.in
Commit message (Collapse)AuthorAgeFilesLines
* newapkbuild: allow -n option without urlNatanael Copa2020-04-141-1/+1
|
* newapkbuild: treat packages that start with py[0-9]- as python packages.Leo2020-03-301-1/+1
|
* newapkbuild: do not pass CFLAGS and CXXFLAGS explicitlySören Tempel2020-03-301-2/+0
| | | | | | With the None build type used nowadays these should be picked up automatically by the environment. If not, we would also need to pass CPPFLAGS and LDFLAGS explicitly.
* newapkbuild.in: Allign with CODINGSTYLE quotingTBK2020-03-231-2/+2
|
* newapkbuild: use 'plain' buildtype for meson and 'None' buildtype for CMakeRasmus Thomsen2020-02-211-2/+2
| | | | | | | | | This way Meson and CMake will use the C{,PP,XX}FLAGS we've set in `/etc/abuild.conf`. Without this change CMake and meson will overwrite our CFLAGS with custom flags. Most importantly, they prefer -O1/-O2 over our -Os. See also: https://lists.alpinelinux.org/~alpine/devel/%3C2896c13070c508a49cbaa72c8fb7f34ea947358b.camel%40cogitri.dev%3E
* newapkbuild: do out-of-source CMake builds by defaultLeo2020-02-161-4/+20
| | | | | It is recommended by upstream CMake (it will warn when you do in-source builds) to keep generated files away from the source.
* allow override sharedir for testingNatanael Copa2019-11-071-1/+1
| | | | | Aloow overrid sharedir with global ABUILD_SHAREDIR so we test the local functions.sh instead of a system installed functions.sh
* rename datadir -> sharedirNatanael Copa2019-11-071-8/+8
| | | | | abuild uses datadir as local variable in various functions. Rename the global datadir to sharedir to avoid confusion.
* newapkbuild: simplify source URL derived from GitHub URLJakub Jirutka2019-10-271-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.
* newapkbuild: run cargo install with --lockedJakub Jirutka2019-10-271-1/+1
| | | | | This forces cargo to install the exact versions of the dependencies specified in Cargo.lock. This is essential for reproducible builds!
* newapkbuild: add rust supportRasmus Thomsen2019-10-011-2/+32
|
* newapkbuild: make python packages only depend on setuptoolsNatanael Copa2019-07-171-1/+1
| | | | They normally don't need the python3-dev.
* newapkbuild: add py3-setuptools to python apkbuildRuss2019-07-171-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
* newapkbuild: use current directory for cmakeRuss2019-06-121-1/+1
|
* newapkbuild: quote pkgname and pkgvertcely2019-06-121-2/+2
| | | | These are strings after all and should be quoted even if not strictly necessary because of tradition excluding spaces from package names.
* newapkbuild.in: add default check() for meson packages.Leo2019-06-121-0/+6
|
* Cosmetic: newapkbuild: comment for check sectionsOliver Smith2019-06-121-0/+1
| | | | | Add a '# Check sections' comment, for consistency with the equally commented build and package sections.
* newapkbuild: fix empty function regressionOliver Smith2019-06-121-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
* 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.