summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd31f51a701e6d1a77c9559a4ef25ed3b5d36e83 (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.1.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=ffd615ad1915f65f37113d77d795deee5970c026") # tag: v1.1.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"
}