diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 27 |
3 files changed, 26 insertions, 14 deletions
@@ -1,13 +1,12 @@ pkgbase = procfile-util - pkgdesc = A tool for interacting with Procfiles. - pkgver = 0.16.0 + pkgdesc = A tool for interacting with Procfiles + pkgver = 0.17.0 pkgrel = 1 url = https://github.com/dokku/procfile-util arch = x86_64 license = MIT - source = https://github.com/dokku/procfile-util/releases/download/v0.16.0/procfile-util_0.16.0_linux_amd64.tgz - source = LICENSE - sha256sums = 675d8d39c6f859b6957aaa7d212f3ac231291a395d27e7e7b1cd25e047df927f - sha256sums = 725569065205b55f534d4b040428cef585720756fd953fbdf1a055b6c3349321 + makedepends = go + source = https://github.com/dokku/procfile-util/archive/refs/tags/v0.17.0.tar.gz + sha256sums = 0d687819a64e19bc623ef0bb27aef0b0f05a495ff88ed9824ca81f3b378cae5c pkgname = procfile-util diff --git a/.gitignore b/.gitignore index f9ecc0a87e76..0afc2fb10964 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /src/ /pkg/ -/*.tgz +/*.tar.gz /*.pkg.tar.zst @@ -1,18 +1,31 @@ # Maintainer: Fabien LEFEBVRE <contact@d1ceward.com> pkgname=procfile-util -pkgver=0.16.0 +pkgver=0.17.0 pkgrel=1 -pkgdesc='A tool for interacting with Procfiles.' +pkgdesc='A tool for interacting with Procfiles' arch=('x86_64') url='https://github.com/dokku/procfile-util' license=('MIT') -source=("${url}/releases/download/v${pkgver}/${pkgname}_${pkgver}_linux_amd64.tgz" - 'LICENSE') -sha256sums=('675d8d39c6f859b6957aaa7d212f3ac231291a395d27e7e7b1cd25e047df927f' - '725569065205b55f534d4b040428cef585720756fd953fbdf1a055b6c3349321') +source=("${url}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('0d687819a64e19bc623ef0bb27aef0b0f05a495ff88ed9824ca81f3b378cae5c') +makedepends=('go') + +build() { + cd "${pkgname}-${pkgver}" + + # Build executable + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-asmflags=-trimpath=/src -gcflags=-trimpath=/src" + go build -a -ldflags "-s -w -X main.Version=${pkgver}" -o "${pkgname}-build" . +} package() { - install -Dm755 procfile-util-amd64 "${pkgdir}/usr/bin/${pkgname}" + cd "${pkgname}-${pkgver}" + + install -Dm755 "${pkgname}-build" "${pkgdir}/usr/bin/${pkgname}" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |