diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..b06bb75 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="git://git.gnupg.org/gnupg.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -E '^gnupg-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}' | tail -n1) + +# Trim prefix +VERSION=${TAG_NAME//gnupg-/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 88d9c3c..c82ddbf 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,9 @@ name: gnupg description: Complete and free implementation of the OpenPGP standard -version: 2.4.5 +version: 2.5.12 url: https://www.gnupg.org/ license: BSD-2-Clause,BSD-3-Clause,BSD-4-Clause,CC0-1.0,GPL2-or-later,GPL3-or-later,LGPL2.1-or-later,LGPL3-or-later or GPL2-or-later,MIT,Unicode-TOU architecture: any -depends: ["bzip2","glibc","gnutls","gnutls","libassuan","libgcrypt","libgpg-error","libksba","npth","pinentry","readline","bash","sqlite","zlib"] +depends: ["bzip2","glibc","gnutls","libassuan","libgcrypt","libgpg-error","libksba","libusb","npth","pinentry","readline","openldap","sqlite","zlib"] +make_depends: ["imagemagick","librsvg","openssh"] type: source diff --git a/source.sh b/source.sh index 37682f5..eecf16d 100644 --- a/source.sh +++ b/source.sh @@ -26,6 +26,7 @@ build() { # This function is used to run tests to verify the package has been compiled correctly check() { cd build + make check } @@ -33,8 +34,10 @@ check() { # This function is used to move the compiled files into the output directory package() { cd build + make DESTDIR="$BPM_OUTPUT" install + # Install package licenses install -Dm644 "$BPM_SOURCE"/COPYING.CC0 "$BPM_OUTPUT"/usr/share/licenses/gnupg/COPYING.CC0 install -Dm644 "$BPM_SOURCE"/COPYING.GPL2 "$BPM_OUTPUT"/usr/share/licenses/gnupg/COPYING.GPL2 install -Dm644 "$BPM_SOURCE"/COPYING.LGPL3 "$BPM_OUTPUT"/usr/share/licenses/gnupg/COPYING.LGPL3