Skip to content

Commit

Permalink
dftimewolf: fix packaging
Browse files Browse the repository at this point in the history
fix #3521
  • Loading branch information
noraj authored and noptrix committed Nov 27, 2022
1 parent d22d23b commit 7a2d5ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 7 additions & 4 deletions packages/dftimewolf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# See COPYING for license details.

pkgname=dftimewolf
pkgver=524.ff1ac28c
pkgver=529.5d78ffdb
pkgrel=1
pkgdesc='Framework for orchestrating forensic collection, processing and data export .'
arch=('any')
groups=('blackarch' 'blackarch-forensic')
url='https://github.com/log2timeline/dftimewolf'
license=('Apache')
depends=('python')
makedepends=('git' 'python-setuptools' 'python-pip')
makedepends=('git' 'python-pip')
source=("git+https://github.com/log2timeline/$pkgname.git")
sha512sums=('SKIP')
install="$pkgname.install"
Expand All @@ -25,10 +25,13 @@ package() {
cd $pkgname

install -dm 755 "$pkgdir/usr/bin"
install -Dm 644 requirements.txt "$pkgdir/usr/share/$pkgname/requirements.txt"
install -dm 755 "$pkgdir/usr/share/$pkgname"

install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md docs/*.md

rm -rf LICENSE *.md docs/*.md .gitignore .pylintrc .travis.yml .style.yapf \
.isort.cfg appveyor.yml run_tests.py
.isort.cfg appveyor.yml run_tests.py docker tests mkdocs.yml *.ini \
requirements*.txt

cp -a * "$pkgdir/usr/share/$pkgname/"

Expand Down
5 changes: 2 additions & 3 deletions packages/dftimewolf/dftimewolf.install
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ post_install() {
cd /usr/share/dftimewolf
python -m venv venv
source venv/bin/activate &&
pip install --isolated --root="/usr/share/dftimewolf" --prefix='venv' \
-r requirements.txt
pip install -e .
pip install --isolated --root="/usr/share/dftimewolf" --prefix='venv' .
# pip read from pyproject.toml directly
}

post_upgrade() {
Expand Down

0 comments on commit 7a2d5ab

Please sign in to comment.