Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Ignore BPM archives and signatures
|
||||
*.bpm
|
||||
*.bpm.sig
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="https://www.samba.org/ftp/tevent/"
|
||||
|
||||
# Get version number from FTP server
|
||||
VERSION=$(curl -s -L "$URL" | grep -o -E 'tevent-[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?.tar.gz' | cut -d '-' -f2 | sort -V | tail -n1)
|
||||
|
||||
# Remove '.tar.gz' suffix from VERSION variable
|
||||
VERSION=${VERSION//.tar.gz/}
|
||||
|
||||
echo "$VERSION"
|
||||
@@ -0,0 +1,22 @@
|
||||
name: tevent
|
||||
description: Event system based on the talloc memory management library
|
||||
version: 0.17.1
|
||||
revision: 1
|
||||
url: https://tevent.samba.org/
|
||||
license: GPL3-or-later
|
||||
maintainers:
|
||||
- [email protected]
|
||||
architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- talloc
|
||||
optional_depends:
|
||||
- python3:For python bindings
|
||||
make_depends:
|
||||
- cmocka
|
||||
- python3
|
||||
downloads:
|
||||
- url: https://www.samba.org/ftp/tevent/tevent-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 1be2dea737cde25fe06621f84945e63eb71259e0c43e9f8f5da482dab1a7be92
|
||||
@@ -0,0 +1,19 @@
|
||||
# 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 --bundled-libraries=NONE --builtin-libraries=replace
|
||||
make
|
||||
}
|
||||
|
||||
# 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"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/tevent/LICENSE
|
||||
}
|
||||
Reference in New Issue
Block a user