1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-25 11:40:30 +02:00

gnu: android-f2fs-utils: Install mkf2fsuserimg.sh.

* gnu/packages/android.scm (android-f2fs-utils)[arguments]<#:phases>
[install-shell-scripts]: New phase.
This commit is contained in:
Danny Milosavljevic
2018-05-10 11:24:18 +02:00
parent 51eb4a6e67
commit a73489e8a7

View File

@@ -541,7 +541,16 @@ Android core.")
(lambda* (#:key inputs outputs #:allow-other-keys)
(copy-recursively "." (string-append (assoc-ref outputs "out")
"/include"))
#t)))))
#t))
(add-after 'install 'install-shell-scripts
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(patch-shebang "mkf2fsuserimg.sh")
(substitute* "mkf2fsuserimg.sh"
(("make_f2fs") (string-append bin "/make_f2fs")))
(install-file "mkf2fsuserimg.sh" bin)
#t))))))
(inputs
`(("f2fs-tools" ,f2fs-tools-1.7)
("android-libselinux" ,android-libselinux)