# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=pacman pkgver=4.2.1 pkgrel=1 pkgdesc="a simple library-based package manager" url="http://www.archlinux.org/pacman/" arch="all" license="GPL" depends="" depends_dev="libarchive-dev curl-dev libressl-dev gpgme-dev gettext-dev" makedepends="$depends_dev m4 coreutils sed autoconf automake libtool" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://sources.archlinux.org/other/pacman/pacman-$pkgver.tar.gz" _builddir="$srcdir"/pacman-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --with-scriptlet-shell=/usr/bin/bash \ || return 1 make V=1 || return 1 } package() { cd "$_builddir" make V=1 -j1 DESTDIR="$pkgdir" install || return 1 } md5sums="2a596fc8f723e99660c0869a74afcf47 pacman-4.2.1.tar.gz" sha256sums="a142593c409ef21f6fde0075c7649a58a8ee0edbd2af3f82e4dc05cfc1d0b545 pacman-4.2.1.tar.gz" sha512sums="2a4ba4259677dd79e1aeacfbed72f6af4aed190436e1f4c78cbac9ef70dfd5ccd0b3491b8670426d6a4e12a961584a495c85a14104064137636dc8da6d9c827f pacman-4.2.1.tar.gz"