diff options
author | Patrick McCarty | 2015-06-08 20:39:59 -0700 |
---|---|---|
committer | Patrick McCarty | 2015-06-08 20:40:20 -0700 |
commit | e39ee48e435271c99d11598a9085f4e30f7bd992 (patch) | |
tree | add642195e3f587b55b8fd6cccbb7def71a85505 /PKGBUILD | |
download | aur-e39ee48e435271c99d11598a9085f4e30f7bd992.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..18995c81afb0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Patrick McCarty <pnorcks at gmail dot com> +# Contributor: David Roheim < david dot roheim at gmail dot com > +# Contributor: Thomas Dziedzic < gostrc at gmail > + +pkgname=mock +pkgver=1.2.10 +pkgrel=1 +pkgdesc='A simple chroot build environment manager for building RPMs' +url='http://fedoraproject.org/wiki/Projects/Mock' +arch=('any') +license=('GPL2') +depends=('python') +optdepends=('createrepo_c: for mockchain command' + 'dnf-plugins-core: to create RPMs for Fedora 23 and above' + 'lvm2: for lvm_root plugin' + 'pigz: for parallel compression of chroot cache' + 'yum-utils: to create RPMs for Fedora 22 and below (including EL5, EL6 and EL7)') +install="${pkgname}.install" +options=('!strip' 'libtool' 'staticlibs') + +source=("https://git.fedorahosted.org/cgit/${pkgname}.git/snapshot/${pkgname}-${pkgver}.tar.xz") +sha256sums=('00726cb5ec38692d8631cb26fae85a8ad1d28b66fac2694eaec6779276b7334b') + +build() { + cd "${pkgname}-${pkgver}" + ./autogen.sh + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libdir=/usr/lib \ + --sbindir=/usr/bin + + sed -i "s|@VERSION@|${pkgver}|" docs/${pkgname}{,chain}.1 + make +} + +package() { + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} |