Compare commits

..

10 Commits

Author SHA1 Message Date
Yiyang Kang 648059c4a0 change to git 2024-01-25 07:37:03 +09:00
Marco Rubin 02a0d9e2af removed conflicts 2023-12-16 13:20:33 +01:00
Marco Rubin 0bba11d762 0.6.0 2023-12-10 11:19:44 +01:00
Marco Rubin 7178e9dd1e Added check, conflicts with pdfcpu-bin 2023-08-21 23:47:39 +02:00
Marco Rubin 2fdf4bed05 0.5.0 2023-08-20 15:11:28 +02:00
Marco Rubin c193107b1f 0.4.2 2023-07-26 22:38:20 +02:00
Marco Rubin e1c6e14637 0.4.1 2023-05-07 11:08:50 +02:00
Marco Rubin e886d9f278 0.4.0 2023-03-01 11:34:10 +01:00
Marco Rubin d6e24c804e 0.3.13 2022-09-26 20:26:01 +02:00
Doron Behar 37a2dd674b Update version 2019-04-01 12:50:22 +02:00
3 changed files with 41 additions and 37 deletions

View File

@ -1,15 +1,14 @@
pkgbase = pdfcpu
pkgdesc = A PDF processor written in Go
pkgver = 0.1.22
pkgbase = pdfcpu-git
pkgdesc = A PDF processor written in Go.
pkgver = v0.6.0.r2.gb89d7b1
pkgrel = 1
url = https://github.com/hhrutter/pdfcpu
arch = i686
arch = x86_64
arch = armv7h
license = Apache
makedepends = go
source = pdfcpu-0.1.22.tar.gz::https://github.com/hhrutter/pdfcpu/archive/v0.1.22.tar.gz
sha256sums = 452860b423d930d9c751cdcd765381370cdb87e55133a3495bd74bdd36ecb62d
pkgname = pdfcpu
provides = pdfcpu
conflicts = pdfcpu
source = pdfcpu::git+https://github.com/pdfcpu/pdfcpu.git
b2sums = SKIP
pkgname = pdfcpu-git

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.pkg.tar
*.pkg.tar.*

View File

@ -1,40 +1,43 @@
# Maintainer: Noel Kuntze <noel.kuntze at thermi dot consulting>
# 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
_gourl=github.com/hhrutter/pdfcpu
pkgver=0.1.22
pkgname=pdfcpu-git
_pkgname=pdfcpu
provides=(pdfcpu)
conflicts=(pdfcpu)
pkgver=v0.6.0.r2.gb89d7b1
pkgrel=1
pkgdesc="A PDF processor written in Go"
arch=(i686 x86_64 armv7h)
url="https://github.com/hhrutter/pdfcpu"
pkgdesc='A PDF processor written in Go.'
arch=(x86_64)
url='https://github.com/hhrutter/pdfcpu'
license=('Apache')
makedepends=(go)
source=(pdfcpu-$pkgver.tar.gz::https://$_gourl/archive/v$pkgver.tar.gz)
sha256sums=('452860b423d930d9c751cdcd765381370cdb87e55133a3495bd74bdd36ecb62d')
prepare() {
export GOPATH="${srcdir}/build"
mkdir -p "${GOPATH}/src/github.com/hhrutter/"
mv "${srcdir}/${pkgname}-${pkgver}" "${GOPATH}/src/$_gourl"
go get -v $_gourl/cmd/${pkgname}
}
source=("$_pkgname"'::git+https://github.com/pdfcpu/pdfcpu.git')
b2sums=(SKIP)
build() {
export GOPATH="${srcdir}/build"
cd "${GOPATH}/src/$_gourl/cmd/${pkgname}"
go build -pkgdir "${pkgdir}"
cd $_pkgname
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 ./cmd/pdfcpu
}
pkgver() {
cd "$_pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
# check() {
# cd $_pkgname-$pkgver
# ./coverage.sh
# }
package() {
# copy binary
install -Dm0755 "${srcdir}/build/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
# copy README.md and other documentation
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${srcdir}/build/src/$_gourl/README.md"
# copy the license
install -Dm644 "${srcdir}/build/src/${_gourl}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
cd $_pkgname
install -Dm755 pdfcpu "$pkgdir/usr/bin/$_pkgname"
}