Package Details: toybox 0.8.0-1

Git Clone URL: https://aur.archlinux.org/toybox.git (read-only)
Package Base: toybox
Description: All-in-one Linux command line
Upstream URL: https://landley.net/toybox
Licenses: BSD
Submitter: None
Maintainer: Score_Under
Last Packager: Score_Under
Votes: 6
Popularity: 0.000017
First Submitted: 2013-03-06 01:23
Last Updated: 2019-04-29 13:17

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

BlackLotus89 commented on 2016-10-10 12:38

Here is a fixed PKGBUILD with sha256sum, install fix and armv6h and armv7h added (yes and tested it builds and works)
BOF
# Maintainer: Pablo Lezaeta <prflr88@gmail.com>

pkgname=toybox
pkgver=0.7.1
pkgrel=2
pkgdesc="A BSD-licensed alternative to busybox"
arch=("i686" "x86_64" "armv6h" "armv7h")
license=("BSD")
url="http://landley.net/toybox/"
#makedepends=('')
depends=('attr')
source=("${pkgname}-${pkgver}.tar.gz::http://landley.net/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz")
sha256sums=('5bb3069f58faf12940d5cfde3209ac7f63210bebdd9023979b0c20cede126ea7')

# ToDo, prepare that chage the system minimal UID and user UIDs to the ones used in arch

build() {
cd "${srcdir}/${pkgname}-${pkgver}"

msg "Runing script/make.sh to allow YOU to select the options as upstream want"
make menuconfig
bash scripts/make.sh
}

package() {
msg "Making directories"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
mkdir -p "${pkgdir}/usr/bin"

msg "Creating the file using make install"
cd "${srcdir}/${pkgname}-${pkgver}"
PREFIX=${pkgdir}/usr/toybox/ make install

msg "installing license"
install -m755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/"
cp "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/toybox/"
}
EOF

BlackLotus89 commented on 2016-09-29 21:38

Thx for the quick update package routine fails creating /usr/toybox
install.sh uses PREFIX which is not set quick fix is

--- PKGBUILD.orig 2016-09-29 23:33:20.333721319 +0200
+++ PKGBUILD 2016-09-29 23:32:50.320585848 +0200
@@ -28,7 +28,7 @@

msg "Creating the file using make install"
cd "${srcdir}/${pkgname}-${pkgver}"
- make install
+ PREFIX=${pkgdir}/usr/toybox/ make install

msg "installing license"
install -m755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/"

bch24 commented on 2015-09-03 03:19

Fix is now upstream.

bch24 commented on 2015-08-31 06:11

Need to patch to compile with current gcc

*********** patch.txt *************************************************
--- zconf.hash.c_shipped_old 2015-08-30 22:54:19.269209169 -0700
+++ zconf.hash.c_shipped 2015-08-30 22:57:25.235874654 -0700
@@ -159,9 +159,7 @@
"enable"
};
#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
-#ifdef __GNUC__
-__inline
-#endif
+
struct kconf_id *
kconf_id_lookup (register const char *str, register unsigned int len)
{

*********** patch.txt *************************************************

bch24 commented on 2015-08-18 05:09

cc -o kconfig/mconf kconfig/mconf.c kconfig/zconf.tab.c \
kconfig/lxdialog/*.c -lcurses -DCURSES_LOC="<ncurses.h>" \
-DKBUILD_NO_NLS=1 -DPROJECT_NAME=\"ToyBox\"
In file included from kconfig/zconf.tab.c:158:0:
kconfig/zconf.hash.c:161:43: warning: ‘kconf_id_strings_contents’ is static but used in inline function ‘kconf_id_lookup’ which is not static
#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
^
kconfig/zconf.hash.c:233:44: note: in expansion of macro ‘kconf_id_strings’
register const char *s = o + kconf_id_strings;
^
kconfig/zconf.hash.c:226:26: warning: ‘kconf_id_hash’ is static but used in inline function ‘kconf_id_lookup’ which is not static
register int key = kconf_id_hash (str, len);
^
kconfig/zconf.hash.c:177:26: warning: ‘wordlist’ is static but declared in inline function ‘kconf_id_lookup’ which is not static
static struct kconf_id wordlist[] =
^
/tmp/cca52123.o: In function `zconfparse':
zconf.tab.c:(.text+0xa59): undefined reference to `kconf_id_lookup'
/tmp/cca52123.o: In function `zconflex':
zconf.tab.c:(.text+0x23ed): undefined reference to `kconf_id_lookup'
zconf.tab.c:(.text+0x253f): undefined reference to `kconf_id_lookup'
collect2: error: ld returned 1 exit status
kconfig/Makefile:56: recipe for target 'kconfig/mconf' failed
make: *** [kconfig/mconf] Error 1
==> ERROR: A failure occurred in build().
Aborting...