diff options
-rw-r--r-- | gnu/packages/android.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 9b2ec85de2..82b4cf23ec 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net> ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> ;;; Copyright © 2023 Camilo Q.S. (Distopico) <distopico@riseup.net> +;;; Copyright © 2025 Jordan Moore <lockbox@struct.foo> ;;; ;;; This file is part of GNU Guix. ;;; @@ -1325,3 +1326,35 @@ Java bytecode, which simplifies the analysis of Android applications.") with Android devices using MTP. It also allows the Android device to be mounted via FUSE.") (license license:lgpl2.1+))) + +(define-public simg2img + (package + (name "simg2img") + (version "1.1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/anestisb/android-simg2img") + (commit version))) + (sha256 + (base32 + "0drwvqxbhajka580j93z8ldckhjlpr0i84nh20krdpxcp54xvldh")))) + (build-system gnu-build-system) + (arguments + ;; The Makefile uses PREFIX to set the installation prefix. + (list #:make-flags + #~(list + (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:tests? #f ; no tests provided upstream + #:phases + ;; There is no configure step. + #~(modify-phases %standard-phases (delete 'configure)))) + (inputs (list zlib)) + (home-page "https://github.com/anestisb/android-simg2img") + (synopsis "Convert Android sparse images to raw ext4 images") + (description + "This package provides a standalone port of AOSP's libsparse that converts +Android sparse filesystem images into raw ext4 images, avoiding the need for +the full Android build chain.") + (license license:asl2.0))) |