summaryrefslogtreecommitdiff
path: root/repo/util/dosfstools.xibuild
blob: 9c3a7ad2718a7b0d35529c9a2af53c307c3653ab (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
#!/bin/bash

MAKEDEPS=(make )
DEPS=()

PKG_VER=4.2
SOURCE=https://github.com/dosfstools/dosfstools/releases/download/v$PKG_VER/dosfstools-$PKG_VER.tar.gz
DESC="Utilities for use with the FAT familiy of file systems"

prepare () {
    curl -SsL https://unifoundry.com/pub/unifont/unifont-13.0.06/font-builds/unifont-13.0.06.pcf.gz > unifont-13.0.06.pcf.gz
    gunzip -c unifont-13.0.06.pcf.gz > /usr/share/fonts/unifont/unifont.pcf

    unset {C,CPP,CXX,LD}FLAGS
}

build () {
    ./configure --prefix=/usr        \
            --enable-compat-symlinks \
            --mandir=/usr/share/man  \
            --docdir=/usr/share/doc/dosfstools-$PKG_VER &&
    make

}

package () {
    make DESTDIR=$PKG_DEST install 
}