Skip to content

makepkg

Workflow

Create a basic PKGBUILD. We only need to get the download link right right now.

makepkg -do
ls src
The ls src command will show us the name of the directory we have to cd into in the build and package function of our PKGBUILD.

Skip annoying gpg checks

makepkg -sri --skippgpcheck

Configure makepkg to use aria2c

source: https://wiki.archlinux.org/title/Aria2#Using_aria2_with_makepkg

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
# DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
#           'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
#           'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
#           'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
#           'rsync::/usr/bin/rsync --no-motd -z %u %o'
#           'scp::/usr/bin/scp -C %u %o')

DLAGENTS=('ftp::/usr/bin/aria2c -UWget -s10 -x10 %u -o %o --follow-metalink=mem'
          'http::/usr/bin/aria2c -UWget -s10 -x10 %u -o %o --follow-metalink=mem'
          'https::/usr/bin/aria2c -UWget -s10 -x10 %u -o %o --follow-metalink=mem'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')


Comments