Skip to content

Commit

Permalink
add homebrew support (#119)
Browse files Browse the repository at this point in the history
* updated the readme with the new installation method

* added Formula

* added Formula

* updated tap command

* updated tap command
  • Loading branch information
HawkingRadiation42 authored Sep 17, 2023
1 parent 593385e commit a035f7f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Formula/nchat.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Nchat < Formula
desc "Terminal-based Telegram / WhatsApp Client for Linux and Macos"
homepage "https://github.com/d99kris/nchat"
url "https://github.com/d99kris/nchat/archive/refs/tags/v3.60.tar.gz"
sha256 "8a382603d5e9ef1942f796995dc4652d9e9665d1dbcf55349461e81ecebf4bca"
license "MIT"

depends_on "ccache"
depends_on "cmake" => :build
depends_on "go"
depends_on "gperf"
depends_on "help2man"
depends_on "libmagic"
depends_on "ncurses"
depends_on "openssl"
depends_on "readline"
depends_on "sqlite"

def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "-s"
system "make", "install"
end
end

test do
system "#{bin}/nchat", "--version"
end
end
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,23 @@ Linux / Ubuntu

macOS
-----

There are two methods to install nchat on macOS: through Homebrew or building from source.

### Using Homebrew

First, tap the repository:

```bash
brew tap d99kris/nchat
```
Then, install nchat:

```bash
brew install nchat
```

### Building from source
**Dependencies**

brew install gperf cmake openssl ncurses ccache readline help2man sqlite libmagic go
Expand Down

0 comments on commit a035f7f

Please sign in to comment.