blob: 31589bd1936d2aebef7ef9b7df6a5ec53e104eb0 (
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
|
# Maintainer: Mikhail Swift <mikhail.swift@gmail.com>
pkgname=lazydocker-git
_pkgname=lazydocker
pkgver=0.5.4.r4.gc04867b
pkgrel=1
pkgdesc='A simple terminal UI for docker and docker-compose, written in Go with the gocui library.'
arch=('1686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://github.com/jesseduffield/lazydocker'
license=('MIT')
options=('!strip' '!emptydirs')
makedepends=('go' 'git')
conflicts=('lazydocker')
provides=('lazydocker')
source=("${_pkgname}::git+https://github.com/jesseduffield/lazydocker.git#branch=master")
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_pkgname}"
go build \
-gcflags=all=-trimpath=${PWD} \
-asmflags=all=-trimpath=${PWD} \
-ldflags=-extldflags=-zrelro \
-ldflags=-extldflags=-znow \
-ldflags "-s -w -X main.version=${pkgver}" \
-o ${_pkgname} \
main.go
}
package() {
install -Dm755 "${_pkgname}/${_pkgname}" ${pkgdir}/usr/bin/${_pkgname}
}
|