aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2018-05-10 11:24:18 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2018-05-10 11:24:18 +0200
commita73489e8a74bf5cbd85f0025c28610d098267b53 (patch)
treece2f766222d9d87e3336adf43d43f3c6cb09faf8 /gnu
parent51eb4a6e67bab2d84dcdc34c3b7b000dda140e4c (diff)
downloadpatches-a73489e8a74bf5cbd85f0025c28610d098267b53.tar
patches-a73489e8a74bf5cbd85f0025c28610d098267b53.tar.gz
gnu: android-f2fs-utils: Install mkf2fsuserimg.sh.
* gnu/packages/android.scm (android-f2fs-utils)[arguments]<#:phases> [install-shell-scripts]: New phase.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/android.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index ddfe90a6b4..763be48748 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -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)