]> git.armaanb.net Git - asd-repo.git/blob - extra/e2fsprogs/build
Adapt for asd linux
[asd-repo.git] / extra / e2fsprogs / build
1 #!/bin/sh -e
2
3 export LDFLAGS="$LDFLAGS -static"
4
5 ./configure \
6     --prefix=/usr \
7     --sbindir=/usr/bin \
8     --sysconfdir=/etc \
9     --enable-symlink-install \
10     --enable-libuuid \
11     --enable-libblkid \
12     --disable-nls \
13     --disable-uuidd \
14     --disable-fsck \
15     --disable-elf-shlibs
16
17 # MKDIR_P fixes an install issue on musl/busybox.
18 make
19 make MKDIR_P="install -d" DESTDIR="$1" install
20
21 # Our e2fsprogs build uses the private libblkid
22 # and libuuid libraries which ship with it.
23 #
24 # It is then built statically which allows us to
25 # remove the libraries entirely.
26 #
27 # This is all done to remove the util-linux
28 # dependency from this package.
29 #
30 # The build system doesn't provide a target
31 # for this so we must do it ourselves.
32 rm -rf \
33     "$1/usr/bin/blkid" \
34     "$1/usr/bin/uuidgen" \
35     "$1/usr/bin/findfs" \
36     "$1/usr/share/man/man8/findfs.8" \
37     "$1/usr/share/man/man8/blkid.8" \
38     "$1/usr/share/man/man3/libblkid.3" \
39     "$1/usr/share/man/man3/"uuid* \
40     "$1/usr/share/man/man1/uuidgen.1" \
41     "$1/usr/lib/pkgconfig/uuid.pc" \
42     "$1/usr/lib/pkgconfig/blkid.pc" \
43     "$1/usr/lib/libuuid.a" \
44     "$1/usr/lib/libblkid.a" \
45     "$1/usr/include/blkid" \
46     "$1/usr/include/uuid"