-
-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo: add package, add android package
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package("android") | ||
set_homepage("https://android.googlesource.com/platform/frameworks/base") | ||
set_description("") | ||
|
||
add_urls("https://android.googlesource.com/platform/manifest.git") | ||
|
||
add_versions("2024.10.01", "7f9b5893c3d20455fd57b7b56527cd9a63311cab") | ||
|
||
add_deps("repo") | ||
|
||
-- Generate config based on xml projects in manifest | ||
on_load(function (package) | ||
|
||
end) | ||
|
||
on_install(function (package) | ||
os.vrun("repo init --partial-clone -b main -u https://android.googlesource.com/platform/manifest") | ||
os.vrun("repo sync -j8") | ||
end) | ||
|
||
on_test(function (package) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package("repo") | ||
set_kind("binary") | ||
set_description("Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow.") | ||
set_homepage("https://gerrit.googlesource.com/git-repo") | ||
set_license("Apache-2.0") | ||
|
||
add_urls("https://gerrit.googlesource.com/git-repo.git") | ||
|
||
add_versions("v2.48", "69467be0cfc80734b821c54ada263c8f1439f964314063f76b7cf256c3dc7ee8") | ||
|
||
if is_host("linux") then | ||
add_extsources("apt::repo") | ||
end | ||
|
||
on_install("linux", function(package) | ||
os.rm(".git") | ||
os.cp("*", package:installdir("bin")) | ||
package:addenv("PATH", package:installdir("bin")) | ||
end) | ||
|
||
on_test(function(package) | ||
os.vrun("repo --version") | ||
end) | ||
|