File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM pritunl/archlinux
2+
3+ RUN pacman -S base-devel --noconfirm
4+
5+ RUN useradd build
6+ USER build
Original file line number Diff line number Diff line change 1+ # Maintainer: Tyler Brock <[email protected] >2+ pkgname=saw
3+ pkgver=0.1.3
4+ pkgrel=1
5+ pkgdesc=" Fast, multipurpose tool for AWS CloudWatch Logs"
6+ arch=(' i686' ' x86_64' ' armv6h' ' armv7h' )
7+ provides=(' saw' )
8+ url=" https://github.com/TylerBrock/$pkgname "
9+ license=(' MIT' )
10+ makedepends=(' go' ' git' ' dep' )
11+ source=(" https://github.com/TylerBrock/$pkgname /archive/v$pkgver .tar.gz" )
12+ md5sums=(' a9daec2bee15e595e71424d720767d8b' )
13+
14+ prepare () {
15+ mkdir -p " ${srcdir} /go/src/github.com/TylerBrock/"
16+ mv " ${srcdir} /${pkgname} -${pkgver} " " ${srcdir} /go/src/github.com/TylerBrock/${pkgname} "
17+ }
18+
19+ build () {
20+ export GOPATH=" ${srcdir} /go"
21+ export PATH=" $PATH :$srcdir /go/bin"
22+ cd " ${srcdir} /go/src/github.com/TylerBrock/${pkgname} "
23+ dep ensure
24+ go build .
25+ }
26+
27+ package () {
28+ cd " ${srcdir} /go/src/github.com/TylerBrock/${pkgname} "
29+ install -Dm755 saw " ${pkgdir} /usr/bin/${pkgname} "
30+ install -Dm644 LICENSE " ${pkgdir} /usr/share/licenses/${pkgname} /LICENSE"
31+ }
You can’t perform that action at this time.
0 commit comments