# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=pacman pkgver=5.0.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="377a2664d6007d72d6d8a126add83bcf pacman-5.0.1.tar.gz" sha256sums="8bd5f407ce8e05c4be8f1c4be4d8dcc8550ea5e494937da5220ea2c23cbb8e04 pacman-5.0.1.tar.gz" sha512sums="9c8c5c8a203f952561ca4aef7d52f40cbecd47f184748dcd34bdf6588ed921e63cc1688647098739d8c54f4b57b239f368bf4f27ddebf3db2f351bf4acd5f707 pacman-5.0.1.tar.gz"