🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839
pkgname: mtools
pkgver: '4.0.49'
pkgrel: '1'
pkgdesc: 'Collection of tools for accessing the file system MS-DOS'
url: 'http://mtools.linux.lu/'
arch: x86_64
depends: []
makedepends: []
source:
- 'ftp://ftp.gnu.org/gnu/mtools/${pkgname}-${pkgver}.tar.bz2'
sha256sums:
- SKIP
build: |
cd ${pkgname}-${pkgver}
sed -i '/^SAMPLE FILE$/s:^:# :' mtools.conf
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/etc
make
make -j1 prefix=${PKGDIR}/usr install
install -Dm644 mtools.conf ${PKGDIR}/etc/mtools.conf
package: |
true
update: |
local url ext
url="https://ftp.gnu.org/gnu/${pkgname}/"
ext=".tar.bz2"
lynx -read_timeout=20 -dump -listonly -nonumbers \
$url?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
sed "s@$url${pkgname}-@@"|sed "s@$ext@@"|tail -1