0.3.13
This commit is contained in:
		
							parent
							
								
									37a2dd674b
								
							
						
					
					
						commit
						d6e24c804e
					
				
							
								
								
									
										12
									
								
								.SRCINFO
								
								
								
								
							
							
						
						
									
										12
									
								
								.SRCINFO
								
								
								
								
							| 
						 | 
				
			
			@ -1,15 +1,13 @@
 | 
			
		|||
pkgbase = pdfcpu
 | 
			
		||||
	pkgdesc = A PDF processor written in Go
 | 
			
		||||
	pkgver = 0.1.23
 | 
			
		||||
	pkgdesc = A PDF processor written in Go.
 | 
			
		||||
	pkgver = 0.3.13
 | 
			
		||||
	pkgrel = 1
 | 
			
		||||
	url = https://github.com/hhrutter/pdfcpu
 | 
			
		||||
	arch = i686
 | 
			
		||||
	arch = x86_64
 | 
			
		||||
	arch = armv7h
 | 
			
		||||
	license = Apache
 | 
			
		||||
	makedepends = go
 | 
			
		||||
	source = pdfcpu-0.1.23.tar.gz::https://github.com/hhrutter/pdfcpu/archive/v0.1.23.tar.gz
 | 
			
		||||
	sha256sums = 817eae6cf8653b3a15d3763c0ae441e62e8339586943357a20b442e829072423
 | 
			
		||||
	conflicts = pdfcpu-git
 | 
			
		||||
	source = https://github.com/hhrutter/pdfcpu/archive/refs/tags/v0.3.13.tar.gz
 | 
			
		||||
	b2sums = 90ae1a776d597f49e5f6a39dc5c4b46830b93713c4782737486d273097d2118fccd1274eb517d468cffb92adfc4f0e6685bb75d3dc59c5696c2de332954cfda1
 | 
			
		||||
 | 
			
		||||
pkgname = pdfcpu
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										45
									
								
								PKGBUILD
								
								
								
								
							
							
						
						
									
										45
									
								
								PKGBUILD
								
								
								
								
							| 
						 | 
				
			
			@ -1,40 +1,31 @@
 | 
			
		|||
# 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.23
 | 
			
		||||
pkgver=0.3.13
 | 
			
		||||
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')
 | 
			
		||||
conflicts=(pdfcpu-git)
 | 
			
		||||
makedepends=(go)
 | 
			
		||||
 | 
			
		||||
source=(pdfcpu-$pkgver.tar.gz::https://$_gourl/archive/v$pkgver.tar.gz)
 | 
			
		||||
 | 
			
		||||
sha256sums=('817eae6cf8653b3a15d3763c0ae441e62e8339586943357a20b442e829072423')
 | 
			
		||||
 | 
			
		||||
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=($url/archive/refs/tags/v$pkgver.tar.gz)
 | 
			
		||||
b2sums=('90ae1a776d597f49e5f6a39dc5c4b46830b93713c4782737486d273097d2118fccd1274eb517d468cffb92adfc4f0e6685bb75d3dc59c5696c2de332954cfda1')
 | 
			
		||||
 | 
			
		||||
build() {
 | 
			
		||||
    export GOPATH="${srcdir}/build"
 | 
			
		||||
    cd "${GOPATH}/src/$_gourl/cmd/${pkgname}"
 | 
			
		||||
    go build -pkgdir "${pkgdir}"
 | 
			
		||||
    cd $pkgname-$pkgver/cmd/pdfcpu
 | 
			
		||||
    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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
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-$pkgver/cmd/pdfcpu
 | 
			
		||||
    install -Dm755 pdfcpu "$pkgdir/usr/bin/$pkgname"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue