mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
876 B
Bash
33 lines
876 B
Bash
pkgname=mtools
|
|
pkgver=4.0.23
|
|
pkgrel=1
|
|
pkgdesc="A collection of utilities to access MS-DOS disks"
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/mtools/"
|
|
license=('GPL')
|
|
depends=('sh')
|
|
makedepends=('texinfo' 'libx11' 'libsm')
|
|
optdepends=('libx11: required by floppyd'
|
|
'libsm: required by floppyd')
|
|
backup=('etc/mtools.conf')
|
|
source=("https://ftp.gnu.org/gnu/mtools/${pkgname}-${pkgver}.tar.bz2")
|
|
sha256sums=('f188db26751aeb5692a79b2380b440ecc05fd1848a52f869d7ca1193f2ef8ee3')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
sed -i '/^SAMPLE FILE$/s:^:# :' mtools.conf
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--sysconfdir=/etc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make -j 1 DESTDIR="${pkgdir}" install
|
|
install -Dm644 mtools.conf "${pkgdir}/etc/mtools.conf"
|
|
}
|