Update package version to 2.10.3
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Github repository
|
||||
REPO="cracklib/cracklib"
|
||||
|
||||
# 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)
|
||||
|
||||
# Trim 'v' character in VERSION variable
|
||||
VERSION=$(echo "$VERSION" | tr -d 'v')
|
||||
|
||||
echo "$VERSION"
|
||||
@@ -1,7 +1,8 @@
|
||||
name: cracklib
|
||||
description: Password checking library
|
||||
version: 2.9.11
|
||||
version: 2.10.3
|
||||
url: https://github.com/cracklib/cracklib
|
||||
license: GPL
|
||||
architecture: any
|
||||
depends: ["glibc","zlib"]
|
||||
type: source
|
||||
|
||||
@@ -34,4 +34,7 @@ package() {
|
||||
mkdir -p "$BPM_OUTPUT"/usr/share/dict/
|
||||
ln -sf /usr/share/cracklib/cracklib-small "$BPM_OUTPUT"/usr/share/dict/cracklib-small
|
||||
sh ./util/cracklib-format dicts/cracklib-small | sh ./util/cracklib-packer "$BPM_OUTPUT"/usr/share/cracklib/pw_dict
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/cracklib/COPYING.LIB
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user