[arch-commits] Commit in hivex/repos (2 files)

Robin Broda coderobe at archlinux.org
Thu May 27 23:42:25 UTC 2021


    Date: Thursday, May 27, 2021 @ 23:42:25
  Author: coderobe
Revision: 949231

archrelease: copy trunk to community-testing-x86_64

Added:
  hivex/repos/community-testing-x86_64/
  hivex/repos/community-testing-x86_64/PKGBUILD
    (from rev 949230, hivex/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: hivex/repos/community-testing-x86_64/PKGBUILD (from rev 949230, hivex/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-05-27 23:42:25 UTC (rev 949231)
@@ -0,0 +1,50 @@
+# Maintainer: Robin Broda <coderobe @ archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+# Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws>
+
+pkgname=hivex
+pkgver=1.3.20
+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=("python" "ruby" "ruby-rake" "ruby-rdoc" "perl-io-stringy" "perl-test-simple" "ocaml-findlib" "ocaml" "chrpath")
+optdepends=("python: python bindings"
+	    "ruby: ruby bindings"
+	    "ocaml: ocaml bindings")
+source=("http://libguestfs.org/download/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
+sha512sums=('366e84c2a13ff53c70036df60db6e2b469cd06e3405761df73c47978b4fa0245246a1ea912aa5852b1272221d55c6c100b40b00e4c9a6f5668d12ff7f93c787a'
+            'SKIP')
+validpgpkeys=('F7774FB1AD074A7E8C8767EA91738F73E1B768A0') # Richard W.M. Jones <rjones at redhat.com>
+
+build() {
+    cd "$pkgname-$pkgver"
+
+    ./configure \
+	--bindir=/usr/bin \
+	--libdir=/usr/lib \
+	--prefix=/usr \
+	--disable-rpath \
+	--disable-static PYTHON=python
+
+    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
+}



More information about the arch-commits mailing list