void-packages/srcpkgs/toybox/template
mobinmob beb8eb23e4
toybox: update to 0.8.4.
Closes: #26012 [via git-merge-pr]
2020-11-01 00:36:56 +01:00

51 lines
963 B
Bash

# Template file for 'toybox'
pkgname=toybox
version=0.8.4
revision=1
create_wrksrc=yes
short_desc="BSD-licensed alternative to busybox"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="0BSD"
homepage="http://www.landley.net/toybox"
distfiles="http://www.landley.net/toybox/downloads/toybox-${version}.tar.gz"
checksum=cb2a565a8d30015d08d73628795dca51a85b99b149aeabbbecd9e8dbdbd8fddc
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_check() {
cd toybox
make tests
cd ../toybox-static
make tests
}
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
}
}