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
+4
View File
@@ -1,7 +1,11 @@
name: mtools name: mtools
description: A collection of utilities to access MS-DOS disks without mounting them description: A collection of utilities to access MS-DOS disks without mounting them
version: 4.0.44 version: 4.0.44
revision: 2
url: https://www.gnu.org/software/mtools/ url: https://www.gnu.org/software/mtools/
license: GPL3-or-later license: GPL3-or-later
architecture: any architecture: any
depends: ["glibc"]
optional_depends: ["libx11","libxau"]
make_depends: ["libx11","texinfo"]
type: source type: source
+7 -1
View File
@@ -15,7 +15,7 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
./configure --prefix=/usr ./configure --prefix=/usr --sysconfdir=/etc
make make
} }
@@ -29,4 +29,10 @@ check() {
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
make DESTDIR="$BPM_OUTPUT" install 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
} }