blob: 12fe2164f75051b7af3eaa42f40d5296a428674c (
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
|
# Maintainer: Bruno Miguel <bruno@privacyrequired.com>
pkgname=yam-formatter-git
_shortpkgname=yam-formatter
pkgdesc='A sweet little formatter for YAML'
arch=('x86_64' 'aarch64')
url='https://github.com/chainguard-dev/yam'
pkgrel=1
license=('Apache-2.0')
makedepends=('go' 'git')
source=('git+https://github.com/chainguard-dev/yam')
md5sums=('SKIP')
provides=($_shortpkgname)
conflicts=($_shortpkgname)
pkgver=r98.1b32cff
pkgver() {
cd yam
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd yam
go build
}
package() {
cd yam
install -Dm755 yam "$pkgdir/usr/bin/yam-formatter"
install -Dm755 LICENSE "$pkgdir/usr/share/licenses/yam-formatter/LICENSE"
}
|