makepkg not war

makepkg is the de-facto standard way to build packages in Arch Linux, called PKGBUILDs. Here are a couple of small recipes for it:

To build a package

makepkg -sir


  • -s: automatically installs missing dependencies
  • -i: installs the package after it is built
  • -r: removes build dependencies once the package is built; good for cleaning

To clean package leftovers

makepkg -code
find . -name '*.pkg.tar.xz' -delete


  • -c, -o, -d, -e: all the switches, used together, can be interpreted as clean all leftovers.
  • find: removes previously built packages in the current directory


Comments powered by Disqus