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
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 10 additions and 1 deletions

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)