Package Details: toybox 0.8.10-1

Git Clone URL: https://aur.archlinux.org/toybox.git (read-only, click to copy)
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: 10
Popularity: 0.86
First Submitted: 2013-03-06 01:23 (UTC)
Last Updated: 2023-08-05 10:27 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

Score_Under commented on 2021-07-15 12:15 (UTC)

@Hekuran thanks for the pointers! I've incorporated that into the package and bumped the release number

Hekuran commented on 2021-07-13 12:29 (UTC) (edited on 2021-07-13 12:30 (UTC) by Hekuran)

(you forgot yo update the .SRCINFO, so yay annoys and says local its newer than aur.)

Also this package has two identical binarys, which is bloat, makes the package big unnecessarily, so i replaced one with a symlink, and moved the symlinks to /opt where they belong.

(use patch -l to avoid white space diff)

diff --git a/.SRCINFO b/.SRCINFO
index 08721ef..0beffb2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = toybox
    pkgdesc = All-in-one Linux command line
-   pkgver = 0.8.4
+   pkgver = 0.8.5
    pkgrel = 1
    url = https://landley.net/toybox
    arch = i686
@@ -9,8 +9,7 @@ pkgbase = toybox
    arch = armv7h
    license = BSD
    depends = attr
-   source = https://github.com/landley/toybox/archive/0.8.4.tar.gz
-   sha256sums = bea9fe3aae662ef97b7450df8c0333e50c69cd9f626be8f7e245ef322605b1e9
+   source = https://github.com/landley/toybox/archive/0.8.5.tar.gz
+   sha256sums = 27cc073222f3b726ee10d96c4f32ac2c4c936b07ea195227736755971e6d90c9

 pkgname = toybox
-
diff --git a/PKGBUILD b/PKGBUILD
index 179487b..f5e101a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,8 @@ build() {
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"

-  PREFIX="${pkgdir}/usr/${pkgname}" make install
+  PREFIX="${pkgdir}/opt/${pkgname}" make install
   install -Dm755 "$pkgname" "${pkgdir}/usr/bin/${pkgname}"
+  ln -sf "/usr/bin/${pkgname}" "${pkgdir}/opt/${pkgname}/bin/${pkgname}"
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

BlackLotus89 commented on 2016-10-10 12:38 (UTC)

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 (UTC)

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 (UTC)

Fix is now upstream.

bch24 commented on 2015-08-31 06:11 (UTC)

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 (UTC)

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...