[arch-commits] Commit in libforensic1394/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sun Mar 28 00:20:30 UTC 2021
Date: Sunday, March 28, 2021 @ 00:20:30
Author: anthraxx
Revision: 905853
upgpkg: libforensic1394 0.2-7: remove python2 variant
Modified:
libforensic1394/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++------------------
1 file changed, 12 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-28 00:14:59 UTC (rev 905852)
+++ PKGBUILD 2021-03-28 00:20:30 UTC (rev 905853)
@@ -3,9 +3,9 @@
# Contributor: Frédérik Paradis <fredy14[at]gmail[dot]com>
pkgbase=libforensic1394
-pkgname=('libforensic1394' 'python-libforensic1394' 'python2-libforensic1394')
+pkgname=('libforensic1394' 'python-libforensic1394')
pkgver=0.2
-pkgrel=6
+pkgrel=7
pkgdesc='Library for performing live memory forensics over the IEEE 1394 (FireWire) interface'
url='https://freddie.witherden.org/tools/libforensic1394/'
arch=('x86_64')
@@ -18,27 +18,27 @@
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 ${pkgbase}-${pkgver}
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -Wno-dev \
+ -S .
+ make -C build
- cd ../python
+ 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}"
+ cd ${pkgbase}-${pkgver}
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
}
package_python-libforensic1394() {
@@ -47,10 +47,4 @@
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:
More information about the arch-commits
mailing list