Compare commits
No commits in common. "648059c4a04bd010d0768e9035d89c373118fe5a" and "6f8814d83fefbb62a83a8da48f1beab827a7222f" have entirely different histories.
648059c4a0
...
6f8814d83f
17
.SRCINFO
17
.SRCINFO
|
@ -1,14 +1,15 @@
|
||||||
pkgbase = pdfcpu-git
|
pkgbase = pdfcpu
|
||||||
pkgdesc = A PDF processor written in Go.
|
pkgdesc = A PDF processor written in Go
|
||||||
pkgver = v0.6.0.r2.gb89d7b1
|
pkgver = 0.1.22
|
||||||
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
|
||||||
provides = pdfcpu
|
source = pdfcpu-0.1.22.tar.gz::https://github.com/hhrutter/pdfcpu/archive/v0.1.22.tar.gz
|
||||||
conflicts = pdfcpu
|
sha256sums = 452860b423d930d9c751cdcd765381370cdb87e55133a3495bd74bdd36ecb62d
|
||||||
source = pdfcpu::git+https://github.com/pdfcpu/pdfcpu.git
|
|
||||||
b2sums = SKIP
|
pkgname = pdfcpu
|
||||||
|
|
||||||
pkgname = pdfcpu-git
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
*.pkg.tar
|
|
||||||
*.pkg.tar.*
|
|
59
PKGBUILD
59
PKGBUILD
|
@ -1,43 +1,40 @@
|
||||||
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
|
# Maintainer: Noel Kuntze <noel.kuntze at thermi dot consulting>
|
||||||
# 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-git
|
pkgname=pdfcpu
|
||||||
_pkgname=pdfcpu
|
_gourl=github.com/hhrutter/pdfcpu
|
||||||
provides=(pdfcpu)
|
pkgver=0.1.22
|
||||||
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=(x86_64)
|
arch=(i686 x86_64 armv7h)
|
||||||
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')
|
|
||||||
b2sums=(SKIP)
|
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}
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $_pkgname
|
export GOPATH="${srcdir}/build"
|
||||||
export CGO_CPPFLAGS="$CPPFLAGS"
|
cd "${GOPATH}/src/$_gourl/cmd/${pkgname}"
|
||||||
export CGO_CFLAGS="$CFLAGS"
|
go build -pkgdir "${pkgdir}"
|
||||||
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() {
|
||||||
cd $_pkgname
|
# copy binary
|
||||||
install -Dm755 pdfcpu "$pkgdir/usr/bin/$_pkgname"
|
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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue