Added check, conflicts with pdfcpu-bin
This commit is contained in:
parent
2fdf4bed05
commit
7178e9dd1e
1
.SRCINFO
1
.SRCINFO
|
@ -6,6 +6,7 @@ pkgbase = pdfcpu
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = Apache
|
license = Apache
|
||||||
makedepends = go
|
makedepends = go
|
||||||
|
conflicts = pdfcpu-bin
|
||||||
conflicts = pdfcpu-git
|
conflicts = pdfcpu-git
|
||||||
source = https://github.com/hhrutter/pdfcpu/archive/v0.5.0.tar.gz
|
source = https://github.com/hhrutter/pdfcpu/archive/v0.5.0.tar.gz
|
||||||
b2sums = b3c554918559db85662f8c9252d9a9a7e2ec3db2c177493bc2bc1f9627f35de69f28ab056d13c02ae05cfd9f3cfb40560f2970c6c5e757a72f0b7cd27344a27f
|
b2sums = b3c554918559db85662f8c9252d9a9a7e2ec3db2c177493bc2bc1f9627f35de69f28ab056d13c02ae05cfd9f3cfb40560f2970c6c5e757a72f0b7cd27344a27f
|
||||||
|
|
15
PKGBUILD
15
PKGBUILD
|
@ -10,21 +10,26 @@ 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')
|
||||||
conflicts=(pdfcpu-git)
|
conflicts=($pkgname-bin $pkgname-git)
|
||||||
makedepends=(go)
|
makedepends=(go)
|
||||||
source=($url/archive/v$pkgver.tar.gz)
|
source=($url/archive/v$pkgver.tar.gz)
|
||||||
b2sums=('b3c554918559db85662f8c9252d9a9a7e2ec3db2c177493bc2bc1f9627f35de69f28ab056d13c02ae05cfd9f3cfb40560f2970c6c5e757a72f0b7cd27344a27f')
|
b2sums=('b3c554918559db85662f8c9252d9a9a7e2ec3db2c177493bc2bc1f9627f35de69f28ab056d13c02ae05cfd9f3cfb40560f2970c6c5e757a72f0b7cd27344a27f')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver/cmd/pdfcpu
|
cd $pkgname-$pkgver/cmd/pdfcpu
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
./coverage.sh
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver/cmd/pdfcpu
|
cd $pkgname-$pkgver/cmd/pdfcpu
|
||||||
install -Dm755 pdfcpu "$pkgdir/usr/bin/$pkgname"
|
install -Dm755 pdfcpu "$pkgdir/usr/bin/$pkgname"
|
||||||
|
|
Loading…
Reference in New Issue