[arch-commits] Commit in (hivex hivex/repos hivex/trunk hivex/trunk/PKGBUILD)
Robin Broda
coderobe at archlinux.org
Mon Oct 14 16:25:42 UTC 2019
Date: Monday, October 14, 2019 @ 16:25:42
Author: coderobe
Revision: 515735
import hivex from aur
Added:
hivex/
hivex/repos/
hivex/trunk/
hivex/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Added: hivex/trunk/PKGBUILD
===================================================================
--- hivex/trunk/PKGBUILD (rev 0)
+++ hivex/trunk/PKGBUILD 2019-10-14 16:25:42 UTC (rev 515735)
@@ -0,0 +1,49 @@
+# 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.18
+pkgrel=3
+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")
+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 <rjones at redhat.com>
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ --bindir=/usr/bin \
+ --libdir=/usr/lib \
+ --prefix=/usr \
+ --disable-rpath \
+ --disable-static PYTHON=python2
+
+ make
+}
+
+_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