Date: Sunday, July 8, 2018 @ 21:40:43 Author: eschwartz Revision: 355383
archrelease: copy trunk to community-staging-x86_64 Added: libforensic1394/repos/community-staging-x86_64/ libforensic1394/repos/community-staging-x86_64/PKGBUILD (from rev 355382, libforensic1394/trunk/PKGBUILD) ----------+ PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) Copied: libforensic1394/repos/community-staging-x86_64/PKGBUILD (from rev 355382, libforensic1394/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-08 21:40:43 UTC (rev 355383) @@ -0,0 +1,56 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Sirat18 <a...@sirat18.de> +# Contributor: Frédérik Paradis <fredy14[at]gmail[dot]com> + +pkgbase=libforensic1394 +pkgname=('libforensic1394' 'python-libforensic1394' 'python2-libforensic1394') +pkgver=0.2 +pkgrel=4 +pkgdesc='Library for performing live memory forensics over the IEEE 1394 (FireWire) interface' +url='https://freddie.witherden.org/tools/libforensic1394/' +arch=('x86_64') +license=('LGPL3') +makedepends=('cmake' 'glibc' 'python' 'python2') +source=(https://freddie.witherden.org/tools/libforensic1394/releases/${pkgname}-${pkgver}.tar.gz{,.sig}) +sha512sums=('184434037388f6f1d7a028c81d3c9101b20200b2444e28d5e007c34204ba58e71fb0db8cb1406063f0d4fe06bca80a1795e5a44d7eae52fa1c227f0b0cbf5dbd' + 'SKIP') +validpgpkeys=('509E82C45B8EE8D9926B395CFC9F4433FBA8A957') # Freddie Witherden <fred...@witherden.org> + +prepare() { + cd ${pkgbase}-${pkgver} + mkdir build + + # https://github.com/FreddieWitherden/libforensic1394/issues/2 + sed -i 's/-Werror //' CMakeLists.txt +} + +build() { + cd ${pkgbase}-${pkgver}/build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make + + cd ../python + python setup.py build + python2 setup.py build +} + +package_libforensic1394() { + depends=('glibc') + cd ${pkgbase}-${pkgver}/build + make DESTDIR="${pkgdir}" install + install -Dm 644 ../README -t "${pkgdir}/usr/share/doc/${pkgname}" +} + +package_python-libforensic1394() { + depends=('python' 'libforensic1394') + cd ${pkgbase}-${pkgver}/python + python setup.py install --root="${pkgdir}" -O1 +} + +package_python2-libforensic1394() { + depends=('python2' 'libforensic1394') + cd ${pkgbase}-${pkgver}/python + python2 setup.py install --root="${pkgdir}" -O1 +} + +# vim: ts=2 sw=2 et: