Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Build packages from source.
name: build_package
on:
pull_request:
push:
permissions: read-all
jobs:
build_dpkg:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['26.04']
container:
image: ubuntu:${{ matrix.version }}
steps:
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update -q
apt install -y libterm-readline-gnu-perl locales software-properties-common
locale-gen en_US.UTF-8
ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
- name: Install build dependencies
run: |
apt update -q
apt install -y autoconf automake autopoint autotools-dev build-essential debhelper dh-autoreconf dh-python fakeroot git libtool pkg-config python3 python3-build python3-dev python3-setuptools python3-venv pybuild-plugin-pyproject
- uses: actions/checkout@v6
- name: Build from source
run: |
git config --global --add safe.directory '*'
python3 utils/update_source.py
python3 -m build --sdist
- name: Build dpkg
run: |
PACKAGE=`ls -1 dist/*.tar.gz | head -n1`
PACKAGE=`basename "${PACKAGE}"`
PACKAGE_ORIG=`echo "${PACKAGE%.tar.gz}.orig.tar.gz" | tr '-' '_'`
mv "dist/${PACKAGE}" "../${PACKAGE_ORIG}"
cp -rf dpkg debian
dpkg-buildpackage -rfakeroot
2 changes: 1 addition & 1 deletion dpkg/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9
13
2 changes: 1 addition & 1 deletion dpkg/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: pytsk3
Section: python
Priority: extra
Maintainer: Joachim Metz <joachim.metz@gmail.com>
Build-Depends: debhelper (>= 9), dh-autoreconf, dh-python, python3-all (>= 3.10~), python3-all-dev, python3-setuptools
Build-Depends: debhelper (>= 13), dh-autoreconf, dh-python, python3-dev, python3-setuptools, pybuild-plugin-pyproject
Standards-Version: 3.9.5
X-Python3-Version: >= 3.10
Homepage: https://github.com/py4n6/pytsk/
Expand Down
1 change: 1 addition & 0 deletions dpkg/python3-pytsk3.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/lib/python3*
2 changes: 1 addition & 1 deletion dpkg/rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/make -f

%:
dh $@ --buildsystem=python3 --with=autoreconf,python3
dh $@ --buildsystem=pybuild --with=autoreconf,python3

.PHONY: override_dh_auto_test
override_dh_auto_test:
Expand Down
2 changes: 1 addition & 1 deletion dpkg/source/format
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0
3.0 (quilt)
5 changes: 5 additions & 0 deletions dpkg/source/local-options
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extend-diff-ignore = "(^|/)\.git($|/)"
extend-diff-ignore = "(^|/)\.github($|/)"
extend-diff-ignore = "(^|/)\.pylintrc$"
extend-diff-ignore = "(^|/)sleuthkit($|/)"
extend-diff-ignore = "(^|/)tox\.ini$"
Loading