summaryrefslogtreecommitdiff
path: root/homebrew/scrcpy/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/scrcpy/.beer')
-rw-r--r--homebrew/scrcpy/.beer50
1 files changed, 50 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