mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 10:32:15 +08:00
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# $Id: PKGBUILD 73063 2010-03-22 08:28:27Z ronald $
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
# Contributor: judd <jvinet@zeroflux.org>
|
|
|
|
pkgname=e2fsprogs
|
|
pkgver=1.41.11
|
|
pkgrel=1
|
|
pkgdesc="Ext2/3/4 filesystem utilities"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL' 'LGPL' 'MIT')
|
|
url="http://e2fsprogs.sourceforge.net"
|
|
groups=('base')
|
|
depends=('sh' 'util-linux-ng>=2.16')
|
|
makedepends=('bc')
|
|
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
'MIT-LICENSE')
|
|
backup=('etc/mke2fs.conf')
|
|
install=${pkgname}.install
|
|
md5sums=('fb507a40c2706bc38306f150d069e345'
|
|
'035b7c69b7a2cecf996a4708c262245e')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# Remove unnecessary init.d directory
|
|
sed -i '/init\.d/s|^|#|' misc/Makefile.in || return 1
|
|
|
|
./configure --prefix=/usr --with-root-prefix="" --enable-elf-shlibs \
|
|
--disable-fsck --disable-uuidd \
|
|
--disable-libuuid --disable-libblkid || return 1
|
|
|
|
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install install-libs || return 1
|
|
|
|
sed -i -e 's/^AWK=.*/AWK=awk/' "${pkgdir}/usr/bin/compile_et" || return 1
|
|
|
|
# install MIT license
|
|
install -Dm644 "${srcdir}/MIT-LICENSE" \
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE" || return 1
|
|
}
|