From 1ab4237ff803129f9b391c6b845a1dedf2f36c69 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 13 May 2026 09:31:51 +0300 Subject: [PATCH] Update package version to 0.7.1 --- pkg.info | 21 ++++++++++++--------- post_install.sh | 4 ++++ post_update.sh | 4 ++++ pre_remove.sh | 10 ++++++++++ source-files/bpm-compilation.conf | 7 +++++++ source-files/bpm-populate-keyring.bpmhook | 3 +++ source-files/bpm.conf | 17 +++++++++++++++++ source.sh | 6 +++++- 8 files changed, 62 insertions(+), 10 deletions(-) create mode 100644 post_install.sh create mode 100644 post_update.sh create mode 100644 pre_remove.sh create mode 100644 source-files/bpm-compilation.conf create mode 100644 source-files/bpm-populate-keyring.bpmhook create mode 100644 source-files/bpm.conf diff --git a/pkg.info b/pkg.info index 49256f9..288e7d1 100644 --- a/pkg.info +++ b/pkg.info @@ -1,26 +1,29 @@ name: bpm description: The official package manager for Tide Linux -version: 0.6.1 +version: 0.7.1 revision: 1 url: https://github.com/EnumeratedDev/bpm license: MIT +maintainers: + - enumdev@enumerated.dev architecture: any type: source keep: - etc/bpm.conf - etc/bpm-compilation.conf +depends: + - gnupg optional_depends: - - bash - - coreutils - - fakeroot - - git - - tar - - unzip + - bash:For package compilation + - coreutils:For package compilation + - fakeroot:For package compilation + - git:For git downloads during package compilation + - tar:For tarball downloads during package compilation + - unzip:For zip downloads during package compilation make_depends: - golang - - git downloads: - url: https://github.com/EnumeratedDev/bpm/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: d0bdbeb029e7df27e74b84ba584314b35462b735881c27c60c403b0d6a160710 + checksum: 6d8801d760a17e6a3581e9ae5d014d550c5e2899b0ff165a38f30cf13a79ab5f diff --git a/post_install.sh b/post_install.sh new file mode 100644 index 0000000..2caeac5 --- /dev/null +++ b/post_install.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Initialize BPM keyring +bpm keyring -i diff --git a/post_update.sh b/post_update.sh new file mode 100644 index 0000000..2caeac5 --- /dev/null +++ b/post_update.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Initialize BPM keyring +bpm keyring -i diff --git a/pre_remove.sh b/pre_remove.sh new file mode 100644 index 0000000..3f022c0 --- /dev/null +++ b/pre_remove.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Remove BPM installed package database +rm -rf /var/lib/bpm/installed/ + +# Remove BPM gnupg directory +rm -rf /var/lib/bpm/gpg/ + +# Remove BPM cache directory +rm -rf /var/cache/bpm diff --git a/source-files/bpm-compilation.conf b/source-files/bpm-compilation.conf new file mode 100644 index 0000000..c930dca --- /dev/null +++ b/source-files/bpm-compilation.conf @@ -0,0 +1,7 @@ +privilege_escalator_cmd: "sudo" +compilation_jobs: 0 # Set to 0 to automatically use all threads +compilation_env: + - "CARCH=x86_64" + - "CHOST=x86_64-pc-linux-gnu" + - "CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe" + - "CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe" diff --git a/source-files/bpm-populate-keyring.bpmhook b/source-files/bpm-populate-keyring.bpmhook new file mode 100644 index 0000000..efda401 --- /dev/null +++ b/source-files/bpm-populate-keyring.bpmhook @@ -0,0 +1,3 @@ +trigger_actions: ["install", "upgrade", "remove"] +targets: ["var/lib/bpm/keyrings/*"] +run: "/usr/sbin/bpm keyring -p" diff --git a/source-files/bpm.conf b/source-files/bpm.conf new file mode 100644 index 0000000..af6787d --- /dev/null +++ b/source-files/bpm.conf @@ -0,0 +1,17 @@ +ignore_packages: [] # Packages that should not be installed as dependencies or upgraded +ignore_paths: [] # Files and directories that should not be installed, replaced or removed +show_source_package_contents: always # When to list source package source code (Possible values: "always", "install-only", "never") +cleanup_make_dependencies: false # Whether make dependencies should be cleaned up when running `bpm cleanup` or 'bpm remove --cleanup' +databases: + - name: tidelinux-main + verification_level: trusted + source: http://tidelinux.com/repositories/tidelinux-main/binary/ + - name: tidelinux-extra + verification_level: trusted + source: http://tidelinux.com/repositories/tidelinux-extra/source/ + - name: tidelinux-kde + verification_level: trusted + source: http://tidelinux.com/repositories/tidelinux-kde/binary/ + - name: tidelinux-installation-media + verification_level: trusted + source: http://tidelinux.com/repositories/tidelinux-installation-media/binary/ diff --git a/source.sh b/source.sh index d1ed79b..1062ed7 100644 --- a/source.sh +++ b/source.sh @@ -15,7 +15,11 @@ package() { make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install # Install configuration files - make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install-config + install -Dm644 "$BPM_WORKDIR"/bpm.conf "$BPM_OUTPUT"/etc/bpm.conf + install -Dm644 "$BPM_WORKDIR"/bpm-compilation.conf "$BPM_OUTPUT"/etc/bpm-compilation.conf + + # Install bpm hook + install -Dm644 "$BPM_WORKDIR"/bpm-populate-keyring.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/bpm-populate-keyring.bpmhook # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/bpm/LICENSE