Fix dependencies and license
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="PCRE2Project/pcre2"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Get version number from tag name
|
||||||
|
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
name: pcre2
|
name: pcre2
|
||||||
description: that implement regular expression pattern matching using the same syntax and semantics as Perl 5 (Version 2)
|
description: that implement regular expression pattern matching using the same syntax and semantics as Perl 5 (Version 2)
|
||||||
version: 10.42
|
version: 10.42
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://github.com/PCRE2Project/pcre2
|
url: https://github.com/PCRE2Project/pcre2
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["zlib","bzip2","readline"]
|
depends: ["bzip2","glibc","readline","zlib"]
|
||||||
|
optional_depends: ["sh"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -38,4 +38,7 @@ check() {
|
|||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/pcre2/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user