makepkg helpers are groups of scripts used for stages in packaging. These scripts are located at /usr/share/makepkg
.
prepare
stage_patch_ target_dir
:
build
stage_pick_ target pattern1 pattern2 ...
:
$srcdir/pkgs/$target
_pick_ amdgpu usr/lib/firmware/amdgpu
will extract all files in usr/lib/firmware/amdgpu
into $srcdir/pkgs/amdgpu
package
stagedinit
files management_dinit_install_services_ file1 file2 ...
:
_dinit_install_services_ $srcdir/dbus.service
will install dbus.service
into dinit system service directory as the name of dbus
._dinit_install_user_services_ file1 file2 ...
:
_dinit_install_user_services_ $srcdir/dbus.user.service
will install dbus.service
into dinit user service directory as the name of dbus
._dinit_install_helpers_ file1 file2 ...
:
_dinit_install_helpers_ $srcdir/dbus-system-session
will install dbus-system-session
into dinit system service helper directory._dinit_install_user_helpers_ file1 file2 ...
:
_dinit_install_user_helpers_ $srcdir/dbus-user-session
will install dbus-user-session
into dinit system service helper directory._dinit_enable_services_ service1 service2 ...
:
_dinit_enable_services_ ntpd
will enable spefcified system services by create symlinks._dinit_enable_user_services_ service1 service2 ...
:
_dinit_enable_user_services_ dbus
will enable spefcified user services by create symlinks.tmpfiles.d
/ sysusers.d
management_install_license_ file
:
_install_license_ $srcdir/COPYING
will install COPYING
into license directory as the name of current package_install_license_ file target_name
:
_install_license_ $srcdir/COPYING COPYING
will install COPYING
into license directory, inside the directory of the current packagein lint
stage, if pkgdir
contains these directories, directory checker would throw an error:
/lib
/lib64
/usr/lib64
/bin
/sbin
/var/run