diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/scrcpy | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/scrcpy')
-rw-r--r-- | homebrew/scrcpy/.beer | 50 | ||||
-rw-r--r-- | homebrew/scrcpy/.make.sh-auto | 7 | ||||
-rw-r--r-- | homebrew/scrcpy/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/scrcpy/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/scrcpy/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/scrcpy/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/scrcpy/download.sh | 1 |
7 files changed, 62 insertions, 0 deletions
diff --git a/homebrew/scrcpy/.beer b/homebrew/scrcpy/.beer new file mode 100644 index 000000000..de04bbf70 --- /dev/null +++ b/homebrew/scrcpy/.beer @@ -0,0 +1,50 @@ +{ + "name": "Scrcpy", + "description": "Display and control your Android device", + "url": "https://github.com/Genymobile/scrcpy/archive/v1.8.tar.gz", + "mirror": null, + "homepage": "https://github.com/Genymobile/scrcpy", + "depends": [ + { + "depend": "meson", + "build-depend": true + }, + { + "depend": "ninja", + "build-depend": true + }, + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "ffmpeg", + "build-depend": false + }, + { + "depend": "sdl2", + "build-depend": false + } + ], + "resource": [ + { + "name": "prebuilt-server", + "url": "https://github.com/Genymobile/scrcpy/releases/download/v1.8/scrcpy-server-v1.8.jar" + } + ], + "conflicts": [], + "patches": [], + "install": [ + "r = resource(\"prebuilt-server\")", + "r.verify_download_integrity(r.fetch)", + "cp r.cached_download, buildpath/\"prebuilt-server.jar\"", + "mkdir \"build\" do", + "system \"meson\", \"--prefix=#{prefix}\",", + "\"--buildtype=release\",", + "\"-Dprebuilt_server=#{buildpath}/prebuilt-server.jar\",", + "\"..\"", + "system \"ninja\", \"install\"" + ], + "version": "1.8", + "file": "scrcpy.rb" +}
\ No newline at end of file diff --git a/homebrew/scrcpy/.make.sh-auto b/homebrew/scrcpy/.make.sh-auto new file mode 100644 index 000000000..126b430b3 --- /dev/null +++ b/homebrew/scrcpy/.make.sh-auto @@ -0,0 +1,7 @@ +pkg:setup +r = resource("prebuilt-server") +r.verify_download_integrity(r.fetch) +cp r.cached_download, buildpath/"prebuilt-server.jar" +mkdir "build" && cd build +meson --prefix=${PKG_TAPF} --buildtype=release -Dprebuilt_server=#{buildpath}/prebuilt-server.jar .. +ninja install diff --git a/homebrew/scrcpy/_metadata/description b/homebrew/scrcpy/_metadata/description new file mode 100644 index 000000000..739d5b220 --- /dev/null +++ b/homebrew/scrcpy/_metadata/description @@ -0,0 +1 @@ +Display and control your Android device diff --git a/homebrew/scrcpy/_metadata/homepage b/homebrew/scrcpy/_metadata/homepage new file mode 100644 index 000000000..5736b14dc --- /dev/null +++ b/homebrew/scrcpy/_metadata/homepage @@ -0,0 +1 @@ +https://github.com/Genymobile/scrcpy diff --git a/homebrew/scrcpy/_metadata/name b/homebrew/scrcpy/_metadata/name new file mode 100644 index 000000000..834aece6c --- /dev/null +++ b/homebrew/scrcpy/_metadata/name @@ -0,0 +1 @@ +Scrcpy diff --git a/homebrew/scrcpy/_metadata/version b/homebrew/scrcpy/_metadata/version new file mode 100644 index 000000000..625934097 --- /dev/null +++ b/homebrew/scrcpy/_metadata/version @@ -0,0 +1 @@ +1.8 diff --git a/homebrew/scrcpy/download.sh b/homebrew/scrcpy/download.sh new file mode 100755 index 000000000..a9fbd0b35 --- /dev/null +++ b/homebrew/scrcpy/download.sh @@ -0,0 +1 @@ +wget https://github.com/Genymobile/scrcpy/archive/v1.8.tar.gz
\ No newline at end of file |