aports/testing/pdfcpu/APKBUILD
2023-10-12 06:27:02 +02:00

33 lines
830 B
Plaintext

# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=pdfcpu
pkgver=0.5.0
pkgrel=2
pkgdesc="PDF processor written in Go"
url="https://pdfcpu.io"
arch="all"
license="Apache-2.0"
makedepends="go"
options="!check" # test suite fails
source="$pkgname-$pkgver.tar.gz::https://github.com/pdfcpu/pdfcpu/archive/v$pkgver.tar.gz"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -o bin/pdfcpu ./cmd/...
}
check() {
go test ./...
}
package() {
install -Dm755 bin/pdfcpu "$pkgdir"/usr/bin/pdfcpu
}
sha512sums="
83fd2927052fd18f0a42da6ae8d5f46400687d290069134f5d1453c7220e6ae2ac820f25392af3472f3c897099ce8183db95ab3d14f0ad18c388fd769d9e4060 pdfcpu-0.5.0.tar.gz
"