commit 65a571a8e0c17cefd79208b8487303a04287071d Author: EnumDev Date: Thu Mar 12 13:00:45 2026 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d96df7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Ignore BPM archives and signatures +*.bpm +*.bpm.sig diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..c102a84 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Sourceforge project +REPO="libisl" + +# Get version using best_release.json +VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq '.platform_releases.linux.filename' | 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..46874f6 --- /dev/null +++ b/pkg.info @@ -0,0 +1,18 @@ +name: libisl +description: Library for manipulating sets and relations of integer points bounded by linear constraints +version: "0.27" +revision: 1 +url: https://libisl.sourceforge.io/ +license: MIT +maintainers: + - enumdev@enumerated.dev +architecture: any +type: source +depends: + - bzip2 + - gmp +downloads: + - url: https://downloads.sourceforge.net/project/libisl/isl-${BPM_PKG_VERSION}.tar.bz2 + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 626335529331f7c89fec493de929e2e92fb3d8cc860fc7af554e0518ee0029ee diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..4fa628e --- /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 + 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"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libisl/LICENSE +}