Skip to content

Commit

Permalink
addpkg: python-pytsk3
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeonacid committed Jan 21, 2025
1 parent 616aeb4 commit 4c39b94
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions archlinuxcn/python-pytsk3/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[python-pytsk3]
source = "git"
git = "https://github.com/py4n6/pytsk.git"
use_max_tag = true
26 changes: 26 additions & 0 deletions archlinuxcn/python-pytsk3/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: Xeonacid <h.dwwwwww@gmail.com>

_name=pytsk3
pkgname=python-${_name}
pkgver=20231007
pkgrel=1
pkgdesc="Python bindings for The Sleuth Kit (libtsk)"
arch=(x86_64)
url="https://github.com/py4n6/pytsk"
license=(Apache-2.0)
depends=(gcc-libs glibc python sleuthkit)
makedepends=(git python-build python-installer python-setuptools python-wheel)
# Upstream git source is incomplete
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
sha512sums=('61dd6d846c07454153b667955a73ef756980e5f75426a46166395cafc2c8471ec3eed73ca5246ef744775122da9b27ba4f784203df4e28c8a4d4e0df893c85f4')

build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
}

package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README -t "$pkgdir/usr/share/doc/$pkgname"
}
15 changes: 15 additions & 0 deletions archlinuxcn/python-pytsk3/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
maintainers:
- github: Xeonacid
email: xeonacid@archlinuxcn.org

pre_build_script: update_pkgver_and_pkgrel(_G.newver)

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: py4n6/pytsk
use_max_tag: true
- alias: python

0 comments on commit 4c39b94

Please sign in to comment.