From 2225babe1698d4135b3530d3082ccc4b40ffbc4e Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 11 May 2025 12:34:32 +0300 Subject: [PATCH] Add comments, move documentation directory and add license --- check-version.sh | 9 +++++++++ pkg.info | 2 +- source.sh | 9 ++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..6569bc3 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Package name +NAME="intltool" + +# Get version number from launchpad API +VERSION=$(curl -s -L https://api.staging.launchpad.net/1.0/"$NAME"/releases | jq -r '.entries[-1].version') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 2697faf..7c9df96 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: intltool description: Gettext-compatible PO file translation tools version: 0.51.0 -revision: 2 +revision: 3 url: https://freedesktop.org/wiki/Software/intltool/ license: GPL architecture: any diff --git a/source.sh b/source.sh index ea8e752..24901dc 100644 --- a/source.sh +++ b/source.sh @@ -15,7 +15,9 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { + # Fix perl warning sed -i 's:\\\${:\\\$\\{:' intltool-update.in + ./configure --prefix=/usr make } @@ -30,5 +32,10 @@ check() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install - install -v -Dm644 doc/I18N-HOWTO "$BPM_OUTPUT"/usr/share/doc/intltool-0.51.0/I18N-HOWTO + + # Install documentation file + install -Dm644 doc/I18N-HOWTO "$BPM_OUTPUT"/usr/share/doc/intltool/I18N-HOWTO + + # Install package license + install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/intltool/COPYING }