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

Rationale:

  • -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

Rationale:

  • -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

Comments powered by Disqus