diff options
author | Mark Wagie | 2020-09-07 09:07:33 -0600 |
---|---|---|
committer | Mark Wagie | 2020-09-07 09:07:33 -0600 |
commit | c6125256df50b02a94bc4f347f77b36cd0ffaa40 (patch) | |
tree | 913956383b397d430feaf7a6bfc5ab42d74d5a78 | |
parent | 90e76480f7a05f8ed5b1eb92bbdf09876c4d0977 (diff) | |
download | aur-c6125256df50b02a94bc4f347f77b36cd0ffaa40.tar.gz |
revert using Makefile
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 10 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = cheat-git pkgdesc = Allows you to create and view interactive cheatsheets on the command-line - pkgver = 4.0.2.r0.gad7ad64 - pkgrel = 3 + pkgver = 4.1.0.r0.g82e1c27 + pkgrel = 1 url = https://github.com/cheat/cheat arch = i686 arch = x86_64 @@ -3,8 +3,8 @@ # Contributor: Bogdan <d0xi at inbox dot ru> # Contributor: Quan Guo <guotsuan@gmail.com> pkgname=cheat-git -pkgver=4.0.2.r0.gad7ad64 -pkgrel=3 +pkgver=4.1.0.r0.g82e1c27 +pkgrel=1 pkgdesc="Allows you to create and view interactive cheatsheets on the command-line" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url="https://github.com/cheat/cheat" @@ -40,8 +40,11 @@ build() { export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw" - make + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -v "./cmd/${pkgname%-git}" + + # Generate man page + pandoc -s -t man "doc/${pkgname%-git}.1.md" -o "doc/${pkgname%-git}.1" # Clean mod cache for makepkg -C go clean -modcache @@ -49,7 +52,7 @@ build() { package() { cd "$srcdir/${pkgname%-git}" - install -Dm755 "dist/${pkgname%-git}" -t "$pkgdir/usr/bin" + install -Dm755 "${pkgname%-git}" -t "$pkgdir/usr/bin" install -Dm755 "scripts/${pkgname%-git}.bash" \ "$pkgdir/usr/share/bash-completion/completions/${pkgname%-git}" install -Dm755 "scripts/${pkgname%-git}.fish" -t \ |