blob: 9eb061122e884597b314ca7f065e3bee5852f18e (
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
|
# Maintainer: Tony Lambiris <tony@libpcap.net>
pkgname=gotty-git
pkgver=2.0.0.alpha.3.r0.ga080c85
pkgrel=2
pkgdesc='Share your terminal as a web application'
url=https://github.com/yudai/gotty
arch=('any')
license=('MIT')
makedepends=('git' 'go' 'godep')
conflicts=('gotty' 'gotty-bin')
provides=('gotty' 'gotty-bin')
source=("${pkgname}::git+https://github.com/yudai/gotty.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
prepare() {
cd "${srcdir}/${pkgname}"
install -m755 -d "${srcdir}/go/src/github.com/yudai/"
ln -sf "${srcdir}/${pkgname}" "${srcdir}/go/src/github.com/yudai/gotty"
}
build() {
cd "${srcdir}/go/src/github.com/yudai/gotty"
export GOPATH="${srcdir}/go" GOFLAGS="-modcacherw"
make
}
package() {
cd "${srcdir}/go/src/github.com/yudai/gotty"
install -Dm755 "gotty" "${pkgdir}/usr/bin/gotty"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|