blob: 4166678d82b2f3d8a1c7273402b3f3c2a53909c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
# Contributor: Noel Kuntze <noel.kuntze at thermi dot consulting>
# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
# Contributor: Stephan Eisvogel <eisvogel at embinet dot de
pkgname=pdfcpu
pkgver=0.8.0
pkgrel=1
pkgdesc='A PDF processor written in Go.'
arch=(x86_64)
url='https://github.com/hhrutter/pdfcpu'
license=('Apache')
makedepends=(go)
source=($url/archive/v$pkgver.tar.gz)
b2sums=('b6b90eb5ec1c4013ec62302f2edd55aaa280732c8892244f38c1c32490312d8829ce4246801d727f7212705df76df12248e3b2884cdf3d949cd0448a0f006b95')
build() {
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
}
check() {
cd $pkgname-$pkgver
./coverage.sh
}
package() {
cd $pkgname-$pkgver/cmd/pdfcpu
install -Dm755 pdfcpu "$pkgdir/usr/bin/$pkgname"
}
|