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
+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
}