Initial Commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Exclude bpm archives
|
||||
*.bpm
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user