blob: 8b4a4475e85debd7f8c9cb0fb22cb98cce6c2bfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
pkgname=fstabfmt
pkgver=1.2.0
pkgrel=1
pkgdesc='Format /etc/fstab files'
arch=(x86_64)
url='https://github.com/xyproto/fstabfmt'
license=(BSD3)
makedepends=(git go)
source=("git+$url#commit=0049f00bbb344d0a9df3ee07b04a090014b67eac") # tag: v1.2.0
sha256sums=('SKIP')
build() {
cd $pkgname
go build -v -mod=vendor -trimpath -buildmode=pie -ldflags="-s -w -extldflags \"${LDFLAGS}\""
}
package() {
install -Dm755 $pkgname/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|