Skip to content

makepkg

Worflow

  1. Create "$projecrName" dir and cd into it.
  2. Create just neough PKGBUILD to run makepkg -do. Run it. (-d: skip dependencies, -o: download and unpack).
  3. cd into src directory and see the name of unpacked source file: this will determine cd $dir in build
  4. Now follow the instruction for the specific project and see if there are similar PKGBUILDS in aur or somewhere.

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