Skip to content

Commit c3887cb

Browse files
committed
Add AUR Dockerfile + PKGBUILD
1 parent 3ce98d6 commit c3887cb

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

aur/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM pritunl/archlinux
2+
3+
RUN pacman -S base-devel --noconfirm
4+
5+
RUN useradd build
6+
USER build

aur/PKGBUILD

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}

0 commit comments

Comments
 (0)