mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 23:47:19 +08:00
31 lines
929 B
Bash
31 lines
929 B
Bash
|
# $Id: PKGBUILD 72260 2010-03-13 21:44:43Z giovanni $
|
||
|
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
|
||
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
||
|
|
||
|
pkgname=mtools
|
||
|
pkgver=4.0.13
|
||
|
pkgrel=1
|
||
|
pkgdesc="A collection of utilities to access MS-DOS disks"
|
||
|
arch=('i686' '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')
|
||
|
install=mtools.install
|
||
|
source=(http://ftp.gnu.org/gnu/mtools/${pkgname}-${pkgver}.tar.bz2)
|
||
|
md5sums=('334fe1580d6e3f4b5c904ce097267477')
|
||
|
|
||
|
build() {
|
||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||
|
|
||
|
sed -i '/^SAMPLE FILE$/s:^:# :' mtools.conf
|
||
|
./configure --prefix=/usr \
|
||
|
--sysconfdir=/etc
|
||
|
make || return 1
|
||
|
make -j 1 prefix="${pkgdir}/usr" install || return 1
|
||
|
install -Dm644 mtools.conf "${pkgdir}/etc/mtools.conf" || return 1
|
||
|
}
|