diff options
author | Jeremy Gust | 2023-05-09 18:50:40 -0600 |
---|---|---|
committer | Jeremy Gust | 2023-05-09 18:54:12 -0600 |
commit | 7a76f2889615136df2bce1360aac4de2603902ec (patch) | |
tree | 0e60508a567a868b7535f4e7f68a861376b8ebe1 | |
parent | 3ae626ee1c72df2e05101f3fa7bd07f0a738c26f (diff) | |
download | aur-7a76f2889615136df2bce1360aac4de2603902ec.tar.gz |
Updated PKGBUILD to conform to AUR submission guidelines and remove unnecessary check().
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 23 insertions, 17 deletions
@@ -1,14 +1,14 @@ pkgbase = moar pkgdesc = A pager designed to just do the right thing without any configuration. pkgver = 1.14.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/walles/moar - arch = any + arch = x86_64 license = BSD checkdepends = highlight makedepends = go - optdepends = highlight - source = https://github.com/walles/moar/archive/refs/tags/v1.14.0.tar.gz + optdepends = highlight: source code syntax highlighter + source = moar-1.14.0.tar.gz::https://github.com/walles/moar/archive/refs/tags/v1.14.0.tar.gz sha256sums = 93287d8b7fc287b6cbc1c2e830a3df618ec31e17dc6eaf5ea5fb72d75e3bc7e8 pkgname = moar @@ -3,30 +3,36 @@ pkgname=moar pkgver=1.14.0 -pkgrel=1 +pkgrel=2 pkgdesc="A pager designed to just do the right thing without any configuration." -arch=(any) +arch=(x86_64) url='https://github.com/walles/moar' license=(BSD) makedepends=(go) -optdepends=(highlight) checkdepends=(highlight) -source=("https://github.com/walles/moar/archive/refs/tags/v${pkgver}.tar.gz") +optdepends=("highlight: source code syntax highlighter") +source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/walles/moar/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('93287d8b7fc287b6cbc1c2e830a3df618ec31e17dc6eaf5ea5fb72d75e3bc7e8') build() { - cd "${srcdir}/${pkgname}-${pkgver}" - go build -ldflags="-X main.versionString=${pkgver}" -o "${pkgname}" -} -check() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + cd "${srcdir}/${pkgname}-${pkgver}" - go test github.com/walles/moar/m + + go build -ldflags="-s -w -X main.versionString=${pkgver}" -o "${pkgname}" } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - - install -dm755 "${pkgdir}/usr/bin" - install -m755 "moar" "${pkgdir}/usr/bin/moar" + + cd "${srcdir}/${pkgname}-${pkgver}" + + install -Dm755 moar "${pkgdir}/usr/bin/moar" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 moar.1 "${pkgdir}/usr/share/man/man1/moar.1" + install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" } |