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
|
|
|
|
|
|
|
|
pkgname=pdfcpu
|
2023-08-20 22:11:28 +09:00
|
|
|
pkgver=0.5.0
|
2019-01-18 02:13:56 +09:00
|
|
|
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')
|
2022-09-27 03:26:01 +09:00
|
|
|
conflicts=(pdfcpu-git)
|
2019-01-18 02:13:56 +09:00
|
|
|
makedepends=(go)
|
2023-08-20 22:11:28 +09:00
|
|
|
source=($url/archive/v$pkgver.tar.gz)
|
|
|
|
b2sums=('b3c554918559db85662f8c9252d9a9a7e2ec3db2c177493bc2bc1f9627f35de69f28ab056d13c02ae05cfd9f3cfb40560f2970c6c5e757a72f0b7cd27344a27f')
|
2019-01-18 02:13:56 +09:00
|
|
|
|
|
|
|
build() {
|
2022-09-27 03:26:01 +09:00
|
|
|
cd $pkgname-$pkgver/cmd/pdfcpu
|
|
|
|
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"
|
|
|
|
go build -buildvcs=false
|
2019-01-18 02:13:56 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-09-27 03:26:01 +09:00
|
|
|
cd $pkgname-$pkgver/cmd/pdfcpu
|
|
|
|
install -Dm755 pdfcpu "$pkgdir/usr/bin/$pkgname"
|
2019-01-18 02:13:56 +09:00
|
|
|
}
|