2015-09-21 21:29:39 +00:00
|
|
|
# Template file for 'toybox'
|
|
|
|
pkgname=toybox
|
2015-11-04 15:19:16 +00:00
|
|
|
version=0.6.1
|
2015-11-20 03:06:19 +00:00
|
|
|
revision=2
|
2015-09-21 21:29:39 +00:00
|
|
|
short_desc="A BSD-licensed alternative to busybox"
|
|
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="http://www.landley.net/toybox"
|
|
|
|
distfiles="${homepage}/downloads/${pkgname}-${version}.tar.gz"
|
2015-11-04 15:19:16 +00:00
|
|
|
checksum=122ceb30c6ca0e8b8e914a427b1aaa89715c53a3df500afc56524ce88426838c
|
2015-09-21 21:29:39 +00:00
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
mkdir toybox
|
|
|
|
mv * toybox || true
|
|
|
|
cp -a toybox toybox-static
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
# toybox
|
|
|
|
cd ${wrksrc}/toybox
|
|
|
|
make defconfig
|
|
|
|
rm -f ${XBPS_WRAPPERDIR}/strip
|
|
|
|
make ${makejobs} toybox
|
|
|
|
|
|
|
|
# toybox-static
|
|
|
|
cd ${wrksrc}/toybox-static
|
|
|
|
make defconfig
|
|
|
|
make ${makejobs} LDFLAGS="--static" toybox
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin toybox/toybox_unstripped toybox
|
|
|
|
vlicense toybox/LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
toybox-static_package() {
|
|
|
|
short_desc+=" - statically linked"
|
|
|
|
pkg_install() {
|
|
|
|
vbin toybox-static/toybox_unstripped toybox.static
|
|
|
|
vlicense toybox-static/LICENSE
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|