summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38cc9e31fa1b8d901f0c98041a4637885a2c5f97 (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
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>

pkgname=cdetect
pkgver=0.5.4
pkgrel=1
pkgdesc='Detect which compiler version was used for compiling an ELF file'
arch=('x86_64')
url='https://github.com/xyproto/cdetect'
license=(MIT)
makedepends=(go git)
source=("git+https://github.com/xyproto/cdetect#tag=$pkgver")
sha256sums=('SKIP')

build() {
  cd "$pkgname"

  go build -gcflags "all=-trimpath=${PWD}" -asmflags "all=-trimpath=${PWD}" -ldflags "-extldflags ${LDFLAGS}"
}

package() {
  install -Dm755 "$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim: ts=2 sw=2 et: