Date: Thursday, December 26, 2019 @ 01:44:27 Author: felixonmars Revision: 541803
archrelease: copy trunk to community-staging-x86_64 Added: hivex/repos/community-staging-x86_64/ hivex/repos/community-staging-x86_64/PKGBUILD (from rev 541802, hivex/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: hivex/repos/community-staging-x86_64/PKGBUILD (from rev 541802, hivex/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-12-26 01:44:27 UTC (rev 541803) @@ -0,0 +1,50 @@ +# Maintainer: Robin Broda <coderobe @ archlinux.org> +# Contributor: Brian Bidulock <bidul...@openss7.org> +# Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws> + +pkgname=hivex +pkgver=1.3.18 +pkgrel=4 +pkgdesc="System for extracting the contents of Windows Registry." +arch=("x86_64") +url="http://libguestfs.org" +license=("LGPL2.1") +depends=("libxml2" "perl") +makedepends=("python2" "ruby" "ruby-rake" "ruby-rdoc" "perl-io-stringy" "perl-test-simple" "ocaml-findlib" "ocaml" "chrpath") +optdepends=("python2: python bindings" + "ruby: ruby bindings" + "ocaml: ocaml bindings") +source=("http://libguestfs.org/download/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}) +sha512sums=('1851351118921e81df9e505f90d00048a178572c2edd3de40194a69915176bdb615e2eb5afea408d57063e98257c8d1e3d0cd6730407153892cc9e3befc4aa3a' + 'SKIP') +validpgpkeys=('F7774FB1AD074A7E8C8767EA91738F73E1B768A0') # Richard W.M. Jones <rjo...@redhat.com> + +build() { + cd "$pkgname-$pkgver" + + ./configure \ + --bindir=/usr/bin \ + --libdir=/usr/lib \ + --prefix=/usr \ + --disable-rpath \ + --disable-static PYTHON=python2 + + make + chrpath -d perl/blib/arch/auto/Win/Hivex/Hivex.so +} + +_perl_depends() { +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + _perl_depends +}