pdfcpu-git/PKGBUILD

32 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-05-07 18:08:50 +09:00
pkgver=0.4.1
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)
2022-09-27 03:26:01 +09:00
source=($url/archive/refs/tags/v$pkgver.tar.gz)
2023-05-07 18:08:50 +09:00
b2sums=('521b14d8b75a63f6188757e4564b6ce6b3d6f23ed39b7b94251d22f40389711c430f29784742a2252c7b421a09cde4a04b7942924671aaa5373ce5a5fde46991')
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
}