From b9f993d8d66984f492563a9b5b3b6cac2b9df5f5 Mon Sep 17 00:00:00 2001 From: Steve Prybylski Date: Mon, 21 Sep 2015 17:29:39 -0400 Subject: [PATCH] New package: toybox-0.6.0 --- srcpkgs/toybox-static | 1 + srcpkgs/toybox/template | 43 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 120000 srcpkgs/toybox-static create mode 100644 srcpkgs/toybox/template diff --git a/srcpkgs/toybox-static b/srcpkgs/toybox-static new file mode 120000 index 0000000000..f978d79377 --- /dev/null +++ b/srcpkgs/toybox-static @@ -0,0 +1 @@ +toybox \ No newline at end of file diff --git a/srcpkgs/toybox/template b/srcpkgs/toybox/template new file mode 100644 index 0000000000..40d884e9ff --- /dev/null +++ b/srcpkgs/toybox/template @@ -0,0 +1,43 @@ +# Template file for 'toybox' +pkgname=toybox +version=0.6.0 +revision=1 +short_desc="A BSD-licensed alternative to busybox" +maintainer="Steve Prybylski " +license="BSD" +homepage="http://www.landley.net/toybox" +distfiles="${homepage}/downloads/${pkgname}-${version}.tar.gz" +checksum=b6e2694d19ac08f1c3416d5b2a02a31d445db2ed98dec89761430cdff2c9710d + +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 + } +} +