mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=e2fsprogs
|
|
pkgver=1.41.14
|
|
pkgrel=2
|
|
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')
|
|
makedepends=('bc')
|
|
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
'MIT-LICENSE')
|
|
backup=('etc/mke2fs.conf')
|
|
install=${pkgname}.install
|
|
sha1sums=('24f9364fa3d4c0d7d00cb627b819d0e51055d6c5'
|
|
'f4a0d5b0cdb980e3fedd6f5e7dde0b0ffb7bbdfb')
|
|
|
|
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
|
|
|
|
# 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"
|
|
|
|
# install MIT license
|
|
install -Dm644 "${srcdir}/MIT-LICENSE" \
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE" || return 1
|
|
}
|