commit 222a5af9781153a3007625f32f2e5cf071c763d1 Author: EnumDev Date: Wed Jan 7 11:49:19 2026 +0200 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..2929ac4 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://xapian.org/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep -A1 'latest stable version' | grep -o -E '[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..08823b1 --- /dev/null +++ b/pkg.info @@ -0,0 +1,19 @@ +name: xapian-core +description: Open source search engine library +version: 1.4.30 +revision: 1 +url: https://www.xapian.org/ +license: GPL2-or-later +architecture: any +type: source +depends: + - bash + - gcc-libs + - glibc + - util-linux + - zlib +downloads: + - url: https://oligarchy.co.uk/xapian/${BPM_PKG_VERSION}/xapian-core-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 4edf9989499e8bc95085c9f7108ed41d69546c34c6eea81da0fa22d95043bf72 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..5b9d24b --- /dev/null +++ b/source.sh @@ -0,0 +1,25 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr --disable-static + make +} + +# The check function is executed in the source directory +# This function is used to run tests to verify the package has been compiled correctly +check() { + make check +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + make DESTDIR="$BPM_OUTPUT" install + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xapian-core/COPYING +}