# Template file for 'toybox' pkgname=toybox version=0.7.5 revision=1 create_wrksrc=yes short_desc="BSD-licensed alternative to busybox" maintainer="Steve Prybylski " license="0BSD" homepage="http://www.landley.net/toybox" distfiles="${homepage}/downloads/${pkgname}-${version}.tar.gz" checksum=3ada450ac1eab1dfc352fee915ea6129b9a4349c1885f1394b61bd2d89a46c04 post_extract() { mv toybox-${version} toybox cp -r toybox toybox-static } do_build() { export NOSTRIP=1 # toybox cd toybox make defconfig make ${makejobs} toybox # toybox-static cd ../toybox-static make defconfig make ${makejobs} LDFLAGS="-static" toybox } do_install() { vbin toybox/toybox vlicense toybox/LICENSE } toybox-static_package() { short_desc+=" - statically linked" pkg_install() { vbin toybox-static/toybox toybox.static vlicense toybox-static/LICENSE } }