Skip to content

Commit

Permalink
main/zstd: split progs and force deflate on packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Apr 23, 2024
1 parent a2e7c60 commit fdecbbf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contrib/firmware-linux-steamdeck/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pkgver = "20231113.1"
pkgrel = 1
archs = ["x86_64"]
hostmakedepends = ["zstd"]
hostmakedepends = ["zstd-progs"]
replaces = ["firmware-linux-qca"]
pkgdesc = "Additional firmware for Steam Deck"
maintainer = "q66 <q66@chimera-linux.org>"
Expand Down
4 changes: 2 additions & 2 deletions main/base-kernel/template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname = "base-kernel"
pkgver = "0.1"
pkgrel = 7
pkgrel = 8
depends = [
"kmod",
"procps",
Expand Down Expand Up @@ -116,7 +116,7 @@ def _baseloc(self):
"gsed",
"gtar",
"xz",
"zstd",
"zstd-progs",
"flex",
"bison",
"findutils",
Expand Down
2 changes: 1 addition & 1 deletion main/firmware-linux-brcm-rpi/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
_fw_rev = "88aa085bfa1a4650e1ccd88896f8343c22a24055"
_bt_rev = "d9d4741caba7314d6500f588b1eaa5ab387a4ff5"
archs = ["aarch64"]
hostmakedepends = ["zstd"]
hostmakedepends = ["zstd-progs"]
replaces = ["firmware-linux-brcm", "firmware-rpi<=20220905-r0"]
replaces_priority = 100 # always overrides files of firmware-linux-brcm
pkgdesc = "Broadcom firmware for Raspberry Pi"
Expand Down
10 changes: 9 additions & 1 deletion main/zstd/template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname = "zstd"
pkgver = "1.5.6"
pkgrel = 0
pkgrel = 1
build_style = "meson"
configure_args = [
"-Db_ndebug=true",
Expand All @@ -21,6 +21,7 @@
url = "http://www.zstd.net"
source = f"https://github.com/facebook/{pkgname}/releases/download/v{pkgver}/{pkgname}-{pkgver}.tar.gz"
sha256 = "8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1"
compression = "deflate"
hardening = ["!cfi"] # TODO
# checkdepends not available yet
options = ["!check"]
Expand All @@ -33,6 +34,13 @@ def post_install(self):
self.rm(self.destdir / "usr/share/man/man1" / (tool + ".1"))


@subpackage("zstd-progs")
def _progs(self):
self.install_if = [f"{pkgname}={pkgver}-r{pkgrel}"]

return self.default_progs()


@subpackage("zstd-devel")
def _devel(self):
self.provides = [f"libzstd-devel={pkgver}-r{pkgrel}"]
Expand Down

0 comments on commit fdecbbf

Please sign in to comment.