blob: 147fc6596dff4cf672e4c0806e1f3da2dd024c61 (
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
|
# Maintainer: Moses Narrow <moses@skycoin.com>
pkgname=goimports-reviser
pkgver=3.3.0
pkgrel=1
pkgdesc=" Right imports sorting & code formatting tool (goimports alternative)."
arch=('i686' 'x86_64')
url="https://github.com/incu6us/goimports-reviser"
license=('MIT')
makedepends=('git' 'go')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
_version=$(git ls-remote --tags --refs --sort="version:refname" ${url}.git | tail -n1)
_version=${_version##*/}
_version=${_version%%-*}
_version=${_version//v/}
echo ${_version}
}
build() {
cd ${srcdir}/${pkgname}
go build .
}
package() {
install -Dm755 ${srcdir}/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
install -Dm644 ${srcdir}/${pkgname}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|