-
-
Notifications
You must be signed in to change notification settings - Fork 914
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
116 additions
and
1 deletion.
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
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,7 @@ | ||
# Building ttyd with [MSYS2][1] | ||
|
||
1. Download and install the **latest** version of [MSYS2][1], make sure you've updated the package database. | ||
2. Build json-c and libwebsockets: cd to package dir and run `makepkg -s && pacman -U *.pkg.tar.xz`. | ||
3. Build ttyd: cd to ttyd dir and run `makepkg --skipchecksums`. | ||
|
||
[1]: http://msys2.github.io |
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,27 @@ | ||
# Maintainer: Shuanglei Tao <[email protected]> | ||
|
||
pkgname=json-c | ||
pkgver=0.12.1 | ||
pkgrel=1 | ||
pkgdesc="A JSON implementation in C" | ||
arch=('any') | ||
url="https://github.com/json-c/json-c" | ||
license=('MIT') | ||
makedepends=('gcc' 'make' 'autoconf') | ||
source=("https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${pkgver}.tar.gz") | ||
sha256sums=('2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123') | ||
|
||
build() { | ||
cd ${srcdir}/${pkgname}-${pkgver} | ||
./configure \ | ||
--prefix=/usr \ | ||
--enable-shared \ | ||
--enable-static | ||
make | ||
} | ||
|
||
package() { | ||
options=('staticlibs') | ||
cd ${srcdir}/${pkgname}-${pkgver} | ||
make DESTDIR="$pkgdir" install | ||
} |
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,37 @@ | ||
# Maintainer: Shuanglei Tao <[email protected]> | ||
|
||
pkgname="libwebsockets" | ||
pkgver=2.1.0 | ||
pkgrel=1 | ||
pkgdesc="A lightweight pure C library for websockets (msys)" | ||
arch=('any') | ||
url="http://libwebsockets.org" | ||
license=('LGPL 2.1') | ||
makedepends=('gcc' 'cmake' 'zlib-devel' 'openssl-devel') | ||
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/warmcat/${pkgname}/archive/v${pkgver}.tar.gz") | ||
sha256sums=('bcc96aaa609daae4d3f7ab1ee480126709ef4f6a8bf9c85de40aae48e38cce66') | ||
|
||
prepare() { | ||
cd "${srcdir}/${pkgname}-${pkgver}" | ||
} | ||
|
||
build() { | ||
mkdir -p "${srcdir}/build-${CARCH}" | ||
cd "${srcdir}/build-${CARCH}" | ||
|
||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DLWS_USE_BUNDLED_ZLIB=OFF \ | ||
-DLWS_WITHOUT_TESTAPPS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
../${pkgname}-${pkgver} | ||
|
||
make | ||
} | ||
|
||
package() { | ||
depends=('zlib-devel' 'openssl-devel') | ||
options=('staticlibs') | ||
cd "${srcdir}/build-${CARCH}" | ||
make DESTDIR=${pkgdir} install | ||
} |
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,34 @@ | ||
# Maintainer: Shuanglei Tao <[email protected]> | ||
|
||
pkgname="ttyd" | ||
pkgver=master | ||
pkgrel=1 | ||
pkgdesc="A command-line tool for sharing terminal over the web" | ||
arch=('any') | ||
url="https://github.com/tsl0922/ttyd" | ||
license=('MIT') | ||
makedepends=('gcc' 'cmake' 'json-c' 'libwebsockets') | ||
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/tsl0922/${pkgname}/archive/${pkgver}.tar.gz") | ||
sha256sums=('6f4f5e30d92ea1694ce528bdebb892a92aac5dda1ce13ea3b1ce7b865b971f85') | ||
|
||
prepare() { | ||
cd "${srcdir}/${pkgname}-${pkgver}" | ||
} | ||
|
||
build() { | ||
mkdir -p "${srcdir}/build-${CARCH}" | ||
cd "${srcdir}/build-${CARCH}" | ||
|
||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
../${pkgname}-${pkgver} | ||
|
||
make | ||
} | ||
|
||
package() { | ||
options=('staticlibs' 'strip') | ||
cd "${srcdir}/build-${CARCH}" | ||
make DESTDIR=${pkgdir} install | ||
} |