pdfcpu-git/PKGBUILD

36 lines
1.0 KiB
Bash
Raw Normal View History

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-12-10 19:19:44 +09:00
pkgver=0.6.0
2023-12-16 21:20:33 +09:00
pkgrel=2
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)
2023-08-20 22:11:28 +09:00
source=($url/archive/v$pkgver.tar.gz)
2023-12-10 19:19:44 +09:00
b2sums=('f00ee93f1f8c1b1e7c398831f4cdff393d5a01b32753f6cffc5cd3cb2222c562d5a87b9cd31be96683ba4894be63edd2852ec0e1b47078cb77546f6bea1f37ba')
2019-01-18 02:13:56 +09:00
build() {
2022-09-27 03:26:01 +09:00
cd $pkgname-$pkgver/cmd/pdfcpu
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"
go build -buildvcs=false
2019-01-18 02:13:56 +09:00
}
2023-08-22 06:47:39 +09:00
check() {
cd $pkgname-$pkgver
./coverage.sh
}
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
}