summaryrefslogtreecommitdiff
path: root/repo/system/argp-standalone.xibuild
blob: 4c2a722ac4a9f60489e1f46e18f420daed84390c (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
#!/bin/sh

MAKEDEPS=""
DEPS="musl"

PKG_VER=1.3
SOURCE=https://www.lysator.liu.se/~nisse/misc/argp-standalone-$PKG_VER.tar.gz

DESC="Standalone implementation for the argp interface"

build () {
    CFLAGS=" -fPIC" ./configure \
        --prefix=/usr           \
        --disable-static        \
        --sysconfdir=/etc       \
        --localstatedir=/var    &&
    make
}

package () {
    install -d $PKG_DEST/usr/lib
    install -d $PKG_DEST/usr/include
    cp libargp.a $PKG_DEST/usr/lib/
    cp argp.h    $PKG_DEST/usr/include/
}