From e4a312301ac7150f2a5445150aa996fa03f8bf4b Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 11 May 2025 19:27:41 +0300 Subject: [PATCH] Fix dependencies, add config file and add license --- pkg.info | 4 ++++ source.sh | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pkg.info b/pkg.info index 424da7a..d24cc50 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,11 @@ name: mtools description: A collection of utilities to access MS-DOS disks without mounting them version: 4.0.44 +revision: 2 url: https://www.gnu.org/software/mtools/ license: GPL3-or-later architecture: any +depends: ["glibc"] +optional_depends: ["libx11","libxau"] +make_depends: ["libx11","texinfo"] type: source diff --git a/source.sh b/source.sh index a2542be..3ea782e 100644 --- a/source.sh +++ b/source.sh @@ -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 }