Include:Newapkbuild: Difference between revisions

From Alpine Linux
(Drop page; we now link to the man page instead)
Tag: New redirect
(revert back the redirect as it causes the issues in Creating an Alpine package page)
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Abuild_and_Helpers#Generating_new_APKBUILDs]]
To create the actual APKBUILD file <code>newapkbuild</code> from {{pkg|abuild}} can serve you a template to start with. It will create a directory with the given package name, place an example/template APKBUILD file in the given directory, and fill some variables if those are provided. {{Cmd|newapkbuild ''packagename''}}
 
'''newapkbuild options'''
 
* '''-n'''  Set package name to NAME
* '''-d'''  Set package description (pkgdesc) to DESC
* '''-l'''  Set package license to LICENSE
* '''-u'''  Set package URL
* '''-a'''  Create autotools package (use ./configure ...)
* '''-C'''  Create CMake package (Assume cmake/ is there)
* '''-m'''  Create meson package (Assume meson.build is there)
* '''-p'''  Create perl package (Assume Makefile.PL is there)
* '''-y'''  Create python package (Assume setup.py is there)
* '''-s'''  Use sourceforge source URL
* '''-c'''  Copy a sample init.d, conf.d, and install script to new directory
* '''-f'''  Force even if directory already exist
* '''-h'''  Show this help
 
The [https://git.alpinelinux.org/abuild/tree/newapkbuild.1.scd manual page] (available via <code>man newapkbuild</code>) describes all options for <code>newapkbuild</code>.

Revision as of 07:04, 18 February 2025

To create the actual APKBUILD file newapkbuild from abuild can serve you a template to start with. It will create a directory with the given package name, place an example/template APKBUILD file in the given directory, and fill some variables if those are provided.

newapkbuild packagename

newapkbuild options

  • -n Set package name to NAME
  • -d Set package description (pkgdesc) to DESC
  • -l Set package license to LICENSE
  • -u Set package URL
  • -a Create autotools package (use ./configure ...)
  • -C Create CMake package (Assume cmake/ is there)
  • -m Create meson package (Assume meson.build is there)
  • -p Create perl package (Assume Makefile.PL is there)
  • -y Create python package (Assume setup.py is there)
  • -s Use sourceforge source URL
  • -c Copy a sample init.d, conf.d, and install script to new directory
  • -f Force even if directory already exist
  • -h Show this help

The manual page (available via man newapkbuild) describes all options for newapkbuild.