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:

    “Your Dollar is your only Word,
    The wrath of it your only fear.

    “You build it altars tall enough
    To make you see, but your are blind;
    You cannot leave it long enough
    To look before you or behind.”
    —Edwin Arlington Robinson (1869–1935)

    “The moral immune system of this country has been weakened and attacked, and the AIDS virus is the perfect metaphor for it. The malignant neglect of the last twelve years has led to breakdown of our country’s immune system, environmentally, culturally, politically, spiritually and physically.”
    —Barbra Streisand (b. 1942)