core/e2fsprogs/PKGBUILD
Jan Mette e339b8e300
2010-04-04 14:20:41 +00:00

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
}