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:

    You men have proved that PT boats have some value in this war. Washington wants you back in the States to build them up. Those are my orders.
    Frank W. Wead (1895?–1947)

    Authority is the spiritual dimension of power because it depends upon faith in a system of meaning that decrees the necessity of the hierarchical order and so provides for the unity of imperative control.
    Shoshana Zuboff (b. 1951)