44 lines
897 B
Bash
44 lines
897 B
Bash
# Template file for 'toybox'
|
|
pkgname=toybox
|
|
version=0.7.2
|
|
revision=1
|
|
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"
|
|
checksum=79da71c7c39cef0a5f7b834f0b17d0d436e7994dd33e912f581b4c12d3b1681f
|
|
|
|
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
|
|
vlicense toybox/LICENSE
|
|
}
|
|
|
|
toybox-static_package() {
|
|
short_desc+=" - statically linked"
|
|
pkg_install() {
|
|
vbin toybox-static/toybox toybox.static
|
|
vlicense toybox-static/LICENSE
|
|
}
|
|
}
|
|
|