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
|
||||
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
|
||||
|
|
|
@ -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: 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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue