summaryrefslogtreecommitdiff
path: root/repo/util/e2fsprogs.xibuild
blob: c2de603de6dfbf03be9423c960c213fc5f187eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

DEPS=(sh util-linux)

SOURCE=https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.46.4/e2fsprogs-1.46.4.tar.xz
DESC="Ext2/3/4 filesystem utils"

build () {
    mkdir -v build
    cd  build
    ../configure --prefix=/usr       \
             --sysconfdir=/etc       \
             --enable-elf-shlibs     \
             --disable-libblkid      \
             --disable-libuuid       \
             --disable-uuidd         \
             --disable-fsck
    make
    make DESTDIR=$PKG_DEST install 
}


package () {
    rm -fv $PKG_DEST/usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
    gunzip -v $PKG_DEST/usr/share/info/libext2fs.info.gz
    install-info --dir-file=$PKG_DEST/usr/share/info/dir $PKG_DEST/usr/share/info/libext2fs.info
}