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:

    By what a delicate and far-stretched contribution every island is made! What an enterprise of nature thus to lay the foundations of and to build up the future continent, of golden and silver sands and the ruins of forests, with ant-like industry.
    Henry David Thoreau (1817–1862)

    ... the yearly expenses of the existing religious system ... exceed in these United States twenty millions of dollars. Twenty millions! For teaching what? Things unseen and causes unknown!... Twenty millions would more than suffice to make us wise; and alas! do they not more than suffice to make us foolish?
    Frances Wright (1795–1852)