2011-05-29 06:42:14 +08:00
|
|
|
#
|
|
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-11-13 11:52:25 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
pkgname=e2fsprogs
|
2014-09-27 12:12:32 +08:00
|
|
|
pkgver=1.42.12
|
2014-10-06 05:57:01 +08:00
|
|
|
pkgrel=2
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="Ext2/3/4 filesystem utilities"
|
2012-11-13 11:52:25 +08:00
|
|
|
arch=('x86_64')
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('GPL' 'LGPL' 'MIT')
|
|
|
|
url="http://e2fsprogs.sourceforge.net"
|
|
|
|
groups=('base')
|
2012-11-13 11:52:25 +08:00
|
|
|
depends=('sh' 'util-linux')
|
2014-09-27 12:12:32 +08:00
|
|
|
makedepends=('bc' 'util-linux')
|
2010-03-13 23:25:19 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
2014-10-06 05:57:01 +08:00
|
|
|
'MIT-LICENSE'
|
|
|
|
'dumpe2fs-segv.patch')
|
2010-03-13 23:25:19 +08:00
|
|
|
backup=('etc/mke2fs.conf')
|
2014-10-06 05:57:32 +08:00
|
|
|
options=('staticlibs')
|
2010-03-13 23:25:19 +08:00
|
|
|
install=${pkgname}.install
|
2014-09-27 12:12:32 +08:00
|
|
|
sha1sums=('083c1bb0d1e85672e8038a2fadf70b24e7409db7'
|
2014-10-06 05:57:01 +08:00
|
|
|
'f4a0d5b0cdb980e3fedd6f5e7dde0b0ffb7bbdfb'
|
|
|
|
'25c7f7a3e8bb43d00dc04316fa91f864447347c8')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2014-09-27 12:12:32 +08:00
|
|
|
prepare() {
|
2010-03-13 23:25:19 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
2014-10-06 05:57:01 +08:00
|
|
|
patch -Np1 -i ../dumpe2fs-segv.patch
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
# Remove unnecessary init.d directory
|
2012-11-13 11:52:25 +08:00
|
|
|
sed -i '/init\.d/s|^|#|' misc/Makefile.in
|
2014-09-27 12:12:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2012-11-13 11:52:25 +08:00
|
|
|
|
2014-10-06 05:57:32 +08:00
|
|
|
./configure --prefix=/usr --with-root-prefix="" --libdir=/usr/lib \
|
2014-09-27 12:12:32 +08:00
|
|
|
--sbindir=/usr/bin --enable-elf-shlibs --disable-fsck --disable-uuidd \
|
|
|
|
--disable-libuuid --disable-libblkid
|
2012-11-13 11:52:25 +08:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-11-13 11:52:25 +08:00
|
|
|
package() {
|
2014-09-27 12:12:32 +08:00
|
|
|
unset MAKEFLAGS
|
|
|
|
|
2012-11-13 11:52:25 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install install-libs
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-11-13 11:52:25 +08:00
|
|
|
sed -i -e 's/^AWK=.*/AWK=awk/' "${pkgdir}/usr/bin/compile_et"
|
2014-09-27 12:12:32 +08:00
|
|
|
|
2011-05-29 06:42:14 +08:00
|
|
|
# remove references to build directory
|
|
|
|
sed -i -e 's#^SS_DIR=.*#SS_DIR="/usr/share/ss"#' "${pkgdir}/usr/bin/mk_cmds"
|
|
|
|
sed -i -e 's#^ET_DIR=.*#ET_DIR="/usr/share/et"#' "${pkgdir}/usr/bin/compile_et"
|
|
|
|
|
2014-09-27 12:12:32 +08:00
|
|
|
# remove static libraries with a shared counterpart
|
|
|
|
rm "${pkgdir}"/usr/lib/lib{com_err,e2p,ext2fs,ss}.a
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
# install MIT license
|
|
|
|
install -Dm644 "${srcdir}/MIT-LICENSE" \
|
2012-11-13 11:52:25 +08:00
|
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE"
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|