guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/08: gnu: Add mkbootimg.


From: Danny Milosavljevic
Subject: 08/08: gnu: Add mkbootimg.
Date: Sat, 20 Jan 2018 17:08:34 -0500 (EST)

dannym pushed a commit to branch master
in repository guix.

commit 7175abaaa47e7d903008fa8944faef189b208107
Author: Danny Milosavljevic <address@hidden>
Date:   Sat Jan 20 23:07:20 2018 +0100

    gnu: Add mkbootimg.
    
    * gnu/packages/android.scm (mkbootimg): New variable.
---
 gnu/packages/android.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 37f472b..6baefbc 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -311,6 +311,33 @@ of device actions, such as installing and debugging apps, 
and it provides access
 to a Unix shell that can run commands on the connected device or emulator.")
     (license license:asl2.0)))
 
+(define-public mkbootimg
+  (package
+    (name "mkbootimg")
+    (version (android-platform-version))
+    (source (origin
+              (inherit (android-platform-system-core version))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'enter-source
+           (lambda _ (chdir "mkbootimg") #t))
+         (delete 'configure)
+         (delete 'build)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (install-file "mkbootimg" bin)
+               #t))))))
+    (home-page "https://developer.android.com/studio/command-line/adb.html";)
+    (synopsis "Tool to create Android boot images")
+    (description "This package provides a tool to create Android Boot
+Images.")
+    (license license:asl2.0)))
+
 (define-public android-udev-rules
   (package
     (name "android-udev-rules")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]