aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/README.md22
-rw-r--r--packages/debian/control2
-rw-r--r--packages/debian/libsquashfs-dev.install1
-rwxr-xr-xpackages/debian/rules4
4 files changed, 28 insertions, 1 deletions
diff --git a/packages/README.md b/packages/README.md
index a883cf0..272ea46 100644
--- a/packages/README.md
+++ b/packages/README.md
@@ -26,6 +26,28 @@ abuild-keygen -nai
abuild -r
```
+# DEB
+
+The [debian]() directory contains all definitions to build Debian and
+Ubuntu packages.
+
+Package building for Debian like distibutions is a bit tricky. In this
+case we want to add the codename to the version number in order to
+differentiate builds.
+
+```
+apt-get install devscripts build-essential libdistro-info-perl
+source /etc/os-release
+wget https://github.com/AgentD/squashfs-tools-ng/archive/v1.0.2/squashfs-tools-ng-1.0.2.tar.gz -O squashfs-tools-ng_1.0.2+$VERSION_CODENAME.orig.tar.gz
+tar xfz squashfs-tools-ng_1.0.2+$VERSION_CODENAME.orig.tar.gz
+cd squashfs-tools-ng-1.0.2
+ln -s packages/debian
+DEBFULLNAME="$USER" DEBEMAIL="$USER@localhost" dch -v 1.0.2+$VERSION_CODENAME-1 -D $VERSION_CODENAME "Build 1.0.2 for $VERSION_CODENAME."
+debuild
+debuild -- clean
+```
+
+
# PKG
[PKGBUILD]() contains all definition to build Archlinux packages.
diff --git a/packages/debian/control b/packages/debian/control
index a0ba3f5..fe8f213 100644
--- a/packages/debian/control
+++ b/packages/debian/control
@@ -2,7 +2,7 @@ Source: squashfs-tools-ng
Section: kernel
Priority: optional
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
-Build-Depends: debhelper-compat (= 12), pkg-config, libselinux1-dev [linux-any], liblzma-dev, liblz4-dev, zlib1g-dev, libzstd-dev, liblzo2-dev
+Build-Depends: debhelper-compat (= 12), pkg-config, libselinux1-dev [linux-any], liblzma-dev, liblz4-dev, zlib1g-dev, libzstd-dev, liblzo2-dev, doxygen
Standards-Version: 4.5.0
Homepage: https://github.com/AgentD/squashfs-tools-ng
diff --git a/packages/debian/libsquashfs-dev.install b/packages/debian/libsquashfs-dev.install
index 92a5426..54979e9 100644
--- a/packages/debian/libsquashfs-dev.install
+++ b/packages/debian/libsquashfs-dev.install
@@ -2,3 +2,4 @@ usr/include/
usr/lib/*/libsquashfs.a
usr/lib/*/libsquashfs.so
usr/lib/*/pkgconfig/
+doxygen-doc/* usr/share/doc/libsquashfs-dev
diff --git a/packages/debian/rules b/packages/debian/rules
index ccf7734..adedbc7 100755
--- a/packages/debian/rules
+++ b/packages/debian/rules
@@ -9,6 +9,10 @@ override_dh_auto_install:
# remove libtool .la files
find $(CURDIR)/debian/tmp/ -name '*.la' -delete
+override_dh_auto_build:
+ dh_auto_build
+ $(MAKE) doxygen-doc
+
%:
dh ${@}