summaryrefslogtreecommitdiff
path: root/skip/ext-dump/ext-dump.xibuild
blob: fa8e285c3d8ef76bb4db0351c927dc862d13768f (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
28
29
30
31
32
33
34
35
#!/bin/sh

NAME="ext-dump"
DESC="ext2 dump and restore utilities"

MAKEDEPS="make musl "

PKG_VER=0.4b47
SOURCE="https://sourceforge.net/projects/dump/files/dump/$PKG_VER/dump-$PKG_VER.tar.gz/download"

prepare () {

    for f in \
        compat/include/compatglob.h \
        compat/include/compaterr.h \
        compat/lib/compaterr.c;
        do

        sed -i 's/__BEGIN_DECLS/#ifdef __cplusplus\nextern "C" {\n#endif/g' $f 
        sed -i 's/__END_DECLS/#ifdef __cplusplus\n}\n#endif/g' $f 
    done
}

build () {
    ./configure \
        --prefix=/usr \
        --bindir=/usr/bin \
        --sysconfdir=/etc \
        --disable-static
    make
}

package () {
    make DESTDIR=$PKG_DEST install
}