From 088008e51a74faa0ab509d8081267568fd77a9b7 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 11 May 2025 17:13:16 +0300 Subject: [PATCH] Fix dependencies and add license --- check-version.sh | 8 ++++++++ pkg.info | 2 ++ source.sh | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..a090d88 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://lynx.invisible-island.net/current/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep 'We are currently working on Lynx ' | grep -o -E '([0-9]*)\.([0-9]*)\.([0-9]*)') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index dfd5d43..88a2c89 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,9 @@ name: lynx description: A text-based browser version: 2.9.2 +revision: 2 url: https://lynx.invisible-island.net/ license: GPL2-only architecture: any +depends: ["brotli","bzip2","glibc","libidn2","ncurses","openssl","zlib"] type: source diff --git a/source.sh b/source.sh index 0d0fb5c..bef8fed 100644 --- a/source.sh +++ b/source.sh @@ -36,4 +36,7 @@ check() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install-full + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/lynx/COPYING }