comparison lib/argp-standalone/argp-standalone.sh @ 606:25cecc6dca48

vanilla: use POSIX shell and busybox tar
author David Demelier <markand@malikania.fr>
date Thu, 18 Jul 2019 07:26:43 +0200
parents bad483aace64
children a9b53729d91b
comparison
equal deleted inserted replaced
605:860ab66f5f71 606:25cecc6dca48
34 fi 34 fi
35 35
36 build() 36 build()
37 { 37 {
38 rm -rf $PKGNAME-$PKGVERSION 38 rm -rf $PKGNAME-$PKGVERSION
39 tar xvaf $PKGNAME-$PKGVERSION.tar.gz 39 tar xvf $PKGNAME-$PKGVERSION.tar.gz
40 pushd $PKGNAME-$PKGVERSION 40 cd $PKGNAME-$PKGVERSION
41 41
42 # TODO: build as shared instead of static. 42 # TODO: build as shared instead of static.
43 patch -p1 < ../gnu89-inline.patch 43 patch -p1 < ../gnu89-inline.patch
44 patch -p1 < ../throw-in-funcdef.patch 44 patch -p1 < ../throw-in-funcdef.patch
45 autoreconf -if 45 autoreconf -if
53 --prefix= 53 --prefix=
54 make 54 make
55 install -D -m 0644 argp.h $DESTDIR/include/argp.h 55 install -D -m 0644 argp.h $DESTDIR/include/argp.h
56 install -D -m 0755 libargp.a $DESTDIR/lib/libargp.a 56 install -D -m 0755 libargp.a $DESTDIR/lib/libargp.a
57 57
58 popd 58 cd ..
59 rm -rf $PKGNAME-$PKGVERSION 59 rm -rf $PKGNAME-$PKGVERSION
60 } 60 }