comparison core/kmod/kmod.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 e1b73f64408d
children 2929b2af4c15
comparison
equal deleted inserted replaced
605:860ab66f5f71 606:25cecc6dca48
54 fi 54 fi
55 55
56 build() 56 build()
57 { 57 {
58 rm -rf $PKGNAME-$PKGVERSION 58 rm -rf $PKGNAME-$PKGVERSION
59 tar xvaf $PKGNAME-$PKGVERSION.tar.xz 59 tar xvf $PKGNAME-$PKGVERSION.tar.xz
60 pushd $PKGNAME-$PKGVERSION 60 cd $PKGNAME-$PKGVERSION
61 61
62 CC="$CC" \ 62 CC="$CC" \
63 CFLAGS="$CFLAGS" \ 63 CFLAGS="$CFLAGS" \
64 LDFLAGS="$LDFLAGS" \ 64 LDFLAGS="$LDFLAGS" \
65 LIBS="$LIBS" \ 65 LIBS="$LIBS" \
77 # compatibility symlinks like lsmod, rmmod are installed as well. 77 # compatibility symlinks like lsmod, rmmod are installed as well.
78 for tool in {ls,ins,rm,dep}mod mod{info,probe}; do 78 for tool in {ls,ins,rm,dep}mod mod{info,probe}; do
79 ln -sf kmod $DESTDIR/bin/$tool 79 ln -sf kmod $DESTDIR/bin/$tool
80 done 80 done
81 81
82 popd 82 cd ..
83 rm -rf $PKGNAME-$PKGVERSION 83 rm -rf $PKGNAME-$PKGVERSION
84 } 84 }