change to git
This commit is contained in:
parent
02a0d9e2af
commit
648059c4a0
14
.SRCINFO
14
.SRCINFO
|
@ -1,12 +1,14 @@
|
||||||
pkgbase = pdfcpu
|
pkgbase = pdfcpu-git
|
||||||
pkgdesc = A PDF processor written in Go.
|
pkgdesc = A PDF processor written in Go.
|
||||||
pkgver = 0.6.0
|
pkgver = v0.6.0.r2.gb89d7b1
|
||||||
pkgrel = 2
|
pkgrel = 1
|
||||||
url = https://github.com/hhrutter/pdfcpu
|
url = https://github.com/hhrutter/pdfcpu
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = Apache
|
license = Apache
|
||||||
makedepends = go
|
makedepends = go
|
||||||
source = https://github.com/hhrutter/pdfcpu/archive/v0.6.0.tar.gz
|
provides = pdfcpu
|
||||||
b2sums = f00ee93f1f8c1b1e7c398831f4cdff393d5a01b32753f6cffc5cd3cb2222c562d5a87b9cd31be96683ba4894be63edd2852ec0e1b47078cb77546f6bea1f37ba
|
conflicts = pdfcpu
|
||||||
|
source = pdfcpu::git+https://github.com/pdfcpu/pdfcpu.git
|
||||||
|
b2sums = SKIP
|
||||||
|
|
||||||
pkgname = pdfcpu
|
pkgname = pdfcpu-git
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
*.pkg.tar
|
||||||
|
*.pkg.tar.*
|
32
PKGBUILD
32
PKGBUILD
|
@ -3,33 +3,41 @@
|
||||||
# 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
|
||||||
pkgver=0.6.0
|
_pkgname=pdfcpu
|
||||||
pkgrel=2
|
provides=(pdfcpu)
|
||||||
|
conflicts=(pdfcpu)
|
||||||
|
pkgver=v0.6.0.r2.gb89d7b1
|
||||||
|
pkgrel=1
|
||||||
pkgdesc='A PDF processor written in Go.'
|
pkgdesc='A PDF processor written in Go.'
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url='https://github.com/hhrutter/pdfcpu'
|
url='https://github.com/hhrutter/pdfcpu'
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
makedepends=(go)
|
makedepends=(go)
|
||||||
source=($url/archive/v$pkgver.tar.gz)
|
source=("$_pkgname"'::git+https://github.com/pdfcpu/pdfcpu.git')
|
||||||
b2sums=('f00ee93f1f8c1b1e7c398831f4cdff393d5a01b32753f6cffc5cd3cb2222c562d5a87b9cd31be96683ba4894be63edd2852ec0e1b47078cb77546f6bea1f37ba')
|
b2sums=(SKIP)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver/cmd/pdfcpu
|
cd $_pkgname
|
||||||
export CGO_CPPFLAGS="$CPPFLAGS"
|
export CGO_CPPFLAGS="$CPPFLAGS"
|
||||||
export CGO_CFLAGS="$CFLAGS"
|
export CGO_CFLAGS="$CFLAGS"
|
||||||
export CGO_CXXFLAGS="$CXXFLAGS"
|
export CGO_CXXFLAGS="$CXXFLAGS"
|
||||||
export CGO_LDFLAGS="$LDFLAGS"
|
export CGO_LDFLAGS="$LDFLAGS"
|
||||||
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||||
go build -buildvcs=false
|
go build -buildvcs=false ./cmd/pdfcpu
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
pkgver() {
|
||||||
cd $pkgname-$pkgver
|
cd "$_pkgname"
|
||||||
./coverage.sh
|
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# check() {
|
||||||
|
# cd $_pkgname-$pkgver
|
||||||
|
# ./coverage.sh
|
||||||
|
# }
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver/cmd/pdfcpu
|
cd $_pkgname
|
||||||
install -Dm755 pdfcpu "$pkgdir/usr/bin/$pkgname"
|
install -Dm755 pdfcpu "$pkgdir/usr/bin/$_pkgname"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue