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.
|
||||
pkgver = 0.6.0
|
||||
pkgrel = 2
|
||||
pkgver = v0.6.0.r2.gb89d7b1
|
||||
pkgrel = 1
|
||||
url = https://github.com/hhrutter/pdfcpu
|
||||
arch = x86_64
|
||||
license = Apache
|
||||
makedepends = go
|
||||
source = https://github.com/hhrutter/pdfcpu/archive/v0.6.0.tar.gz
|
||||
b2sums = f00ee93f1f8c1b1e7c398831f4cdff393d5a01b32753f6cffc5cd3cb2222c562d5a87b9cd31be96683ba4894be63edd2852ec0e1b47078cb77546f6bea1f37ba
|
||||
provides = pdfcpu
|
||||
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: Stephan Eisvogel <eisvogel at embinet dot de
|
||||
|
||||
pkgname=pdfcpu
|
||||
pkgver=0.6.0
|
||||
pkgrel=2
|
||||
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=(x86_64)
|
||||
url='https://github.com/hhrutter/pdfcpu'
|
||||
license=('Apache')
|
||||
makedepends=(go)
|
||||
source=($url/archive/v$pkgver.tar.gz)
|
||||
b2sums=('f00ee93f1f8c1b1e7c398831f4cdff393d5a01b32753f6cffc5cd3cb2222c562d5a87b9cd31be96683ba4894be63edd2852ec0e1b47078cb77546f6bea1f37ba')
|
||||
source=("$_pkgname"'::git+https://github.com/pdfcpu/pdfcpu.git')
|
||||
b2sums=(SKIP)
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver/cmd/pdfcpu
|
||||
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
|
||||
go build -buildvcs=false ./cmd/pdfcpu
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $pkgname-$pkgver
|
||||
./coverage.sh
|
||||
pkgver() {
|
||||
cd "$_pkgname"
|
||||
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
# check() {
|
||||
# cd $_pkgname-$pkgver
|
||||
# ./coverage.sh
|
||||
# }
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver/cmd/pdfcpu
|
||||
install -Dm755 pdfcpu "$pkgdir/usr/bin/$pkgname"
|
||||
cd $_pkgname
|
||||
install -Dm755 pdfcpu "$pkgdir/usr/bin/$_pkgname"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue