Fix dependencies, add config file and add license

This commit is contained in:
2025-05-11 19:27:41 +03:00
parent 1c80a788d1
commit e4a312301a
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -15,7 +15,7 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
./configure --prefix=/usr
./configure --prefix=/usr --sysconfdir=/etc
make
}
@@ -29,4 +29,10 @@ check() {
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
# Install config file
install -Dm644 "$BPM_SOURCE"/mtools.conf "$BPM_OUTPUT"/etc/mtools.conf
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/mtools/COPYING
}