2022-09-27 03:26:01 +09:00
|
|
|
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
|
|
|
|
# Contributor: Noel Kuntze <noel.kuntze at thermi dot consulting>
|
2019-01-18 02:13:56 +09:00
|
|
|
# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
|
|
|
|
# Contributor: Stephan Eisvogel <eisvogel at embinet dot de
|
|
|
|
|
2024-01-25 07:37:03 +09:00
|
|
|
pkgname=pdfcpu-git
|
|
|
|
_pkgname=pdfcpu
|
|
|
|
provides=(pdfcpu)
|
|
|
|
conflicts=(pdfcpu)
|
|
|
|
pkgver=v0.6.0.r2.gb89d7b1
|
|
|
|
pkgrel=1
|
2022-09-27 03:26:01 +09:00
|
|
|
pkgdesc='A PDF processor written in Go.'
|
|
|
|
arch=(x86_64)
|
|
|
|
url='https://github.com/hhrutter/pdfcpu'
|
2019-01-18 02:13:56 +09:00
|
|
|
license=('Apache')
|
|
|
|
makedepends=(go)
|
2024-01-25 07:37:03 +09:00
|
|
|
source=("$_pkgname"'::git+https://github.com/pdfcpu/pdfcpu.git')
|
|
|
|
b2sums=(SKIP)
|
2019-01-18 02:13:56 +09:00
|
|
|
|
|
|
|
build() {
|
2024-01-25 07:37:03 +09:00
|
|
|
cd $_pkgname
|
2023-08-22 06:47:39 +09:00
|
|
|
export CGO_CPPFLAGS="$CPPFLAGS"
|
|
|
|
export CGO_CFLAGS="$CFLAGS"
|
|
|
|
export CGO_CXXFLAGS="$CXXFLAGS"
|
|
|
|
export CGO_LDFLAGS="$LDFLAGS"
|
2022-09-27 03:26:01 +09:00
|
|
|
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
2024-01-25 07:37:03 +09:00
|
|
|
go build -buildvcs=false ./cmd/pdfcpu
|
2019-01-18 02:13:56 +09:00
|
|
|
}
|
|
|
|
|
2024-01-25 07:37:03 +09:00
|
|
|
pkgver() {
|
|
|
|
cd "$_pkgname"
|
|
|
|
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
2023-08-22 06:47:39 +09:00
|
|
|
}
|
|
|
|
|
2024-01-25 07:37:03 +09:00
|
|
|
# check() {
|
|
|
|
# cd $_pkgname-$pkgver
|
|
|
|
# ./coverage.sh
|
|
|
|
# }
|
|
|
|
|
2019-01-18 02:13:56 +09:00
|
|
|
package() {
|
2024-01-25 07:37:03 +09:00
|
|
|
cd $_pkgname
|
|
|
|
install -Dm755 pdfcpu "$pkgdir/usr/bin/$_pkgname"
|
2019-01-18 02:13:56 +09:00
|
|
|
}
|