summaryrefslogtreecommitdiff
path: root/homebrew/scrcpy/.beer
blob: de04bbf70e6494e3c0d52856f7d860d9102cdac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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"
}