Pacman (package Manager) - Packages and Build System

Packages and Build System

Pacman packages are compressed tar archives containing metadata and a directory structure with files. Packages are built with makepkg using Bash build scripts known as PKGBUILDs. The following is a PKGBUILD for the patch package included in the pacman documentation as an example:

pkgname=patch pkgver=2.5.4 pkgrel=3 pkgdesc="A utility to apply patch files to original sources" arch=('i686' 'x86_64') url="http://www.gnu.org/software/patch/patch.html" license=('GPL') groups=('base-devel') depends=('glibc' 'ed') source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz) md5sums=('ee5ae84d115f051d87fcaaef3b4ae782') build { cd "$srcdir"/$pkgname-$pkgver ./configure --prefix=/usr make } package { cd "$srcdir"/$pkgname-$pkgver make prefix="$pkgdir"/usr install }

Read more about this topic:  Pacman (package Manager)

Famous quotes containing the words build and/or system:

    Poetry is the supreme fiction, madame.
    Take the moral law and make a nave of it
    And from the nave build haunted heaven. Thus,
    The conscience is converted into palms,
    Like windy citherns hankering for hymns.
    Wallace Stevens (1879–1955)

    Justice in the hands of the powerful is merely a governing system like any other. Why call it justice? Let us rather call it injustice, but of a sly effective order, based entirely on cruel knowledge of the resistance of the weak, their capacity for pain, humiliation and misery. Injustice sustained at the exact degree of necessary tension to turn the cogs of the huge machine-for- the-making-of-rich-men, without bursting the boiler.
    Georges Bernanos (1888–1948)