Add comments, move documentation directory and add license

This commit is contained in:
2025-05-11 12:34:32 +03:00
parent 20a52662a1
commit 2225babe16
3 changed files with 18 additions and 2 deletions
+9
View File
@@ -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"
+1 -1
View File
@@ -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
+8 -1
View File
@@ -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
}