Compare commits
10 Commits
6f8814d83f
...
648059c4a0
Author | SHA1 | Date |
---|---|---|
Yiyang Kang | 648059c4a0 | |
Marco Rubin | 02a0d9e2af | |
Marco Rubin | 0bba11d762 | |
Marco Rubin | 7178e9dd1e | |
Marco Rubin | 2fdf4bed05 | |
Marco Rubin | c193107b1f | |
Marco Rubin | e1c6e14637 | |
Marco Rubin | e886d9f278 | |
Marco Rubin | d6e24c804e | |
Doron Behar | 37a2dd674b |
17
.SRCINFO
17
.SRCINFO
|
@ -1,15 +1,14 @@
|
||||||
pkgbase = pdfcpu
|
pkgbase = pdfcpu-git
|
||||||
pkgdesc = A PDF processor written in Go
|
pkgdesc = A PDF processor written in Go.
|
||||||
pkgver = 0.1.22
|
pkgver = v0.6.0.r2.gb89d7b1
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/hhrutter/pdfcpu
|
url = https://github.com/hhrutter/pdfcpu
|
||||||
arch = i686
|
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
arch = armv7h
|
|
||||||
license = Apache
|
license = Apache
|
||||||
makedepends = go
|
makedepends = go
|
||||||
source = pdfcpu-0.1.22.tar.gz::https://github.com/hhrutter/pdfcpu/archive/v0.1.22.tar.gz
|
provides = pdfcpu
|
||||||
sha256sums = 452860b423d930d9c751cdcd765381370cdb87e55133a3495bd74bdd36ecb62d
|
conflicts = pdfcpu
|
||||||
|
source = pdfcpu::git+https://github.com/pdfcpu/pdfcpu.git
|
||||||
pkgname = pdfcpu
|
b2sums = SKIP
|
||||||
|
|
||||||
|
pkgname = pdfcpu-git
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
*.pkg.tar
|
||||||
|
*.pkg.tar.*
|
59
PKGBUILD
59
PKGBUILD
|
@ -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: Mikael Eriksson <mikael_eriksson@miffe.org>
|
||||||
# Contributor: Stephan Eisvogel <eisvogel at embinet dot de
|
# Contributor: Stephan Eisvogel <eisvogel at embinet dot de
|
||||||
|
|
||||||
pkgname=pdfcpu
|
pkgname=pdfcpu-git
|
||||||
_gourl=github.com/hhrutter/pdfcpu
|
_pkgname=pdfcpu
|
||||||
pkgver=0.1.22
|
provides=(pdfcpu)
|
||||||
|
conflicts=(pdfcpu)
|
||||||
|
pkgver=v0.6.0.r2.gb89d7b1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A PDF processor written in Go"
|
pkgdesc='A PDF processor written in Go.'
|
||||||
arch=(i686 x86_64 armv7h)
|
arch=(x86_64)
|
||||||
url="https://github.com/hhrutter/pdfcpu"
|
url='https://github.com/hhrutter/pdfcpu'
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
makedepends=(go)
|
makedepends=(go)
|
||||||
|
source=("$_pkgname"'::git+https://github.com/pdfcpu/pdfcpu.git')
|
||||||
source=(pdfcpu-$pkgver.tar.gz::https://$_gourl/archive/v$pkgver.tar.gz)
|
b2sums=(SKIP)
|
||||||
|
|
||||||
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}
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export GOPATH="${srcdir}/build"
|
cd $_pkgname
|
||||||
cd "${GOPATH}/src/$_gourl/cmd/${pkgname}"
|
export CGO_CPPFLAGS="$CPPFLAGS"
|
||||||
go build -pkgdir "${pkgdir}"
|
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() {
|
package() {
|
||||||
# copy binary
|
cd $_pkgname
|
||||||
install -Dm0755 "${srcdir}/build/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
install -Dm755 pdfcpu "$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"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue