summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMoses Narrow2019-10-18 23:00:51 -0500
committerMoses Narrow2019-10-18 23:00:51 -0500
commit26f62e92b9c56c94914107568c55cbbe09762e0e (patch)
tree92ad6e40edf165417bdd10c80d5dc37698402f39 /PKGBUILD
parentec243aa2e6a15f44b2f96deb35adda14d70ed307 (diff)
downloadaur-cxo.tar.gz
Change to new repo at github.com/skycoinproject ; implement signature checking of the PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD65
1 files changed, 35 insertions, 30 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cd53a2435e7..dcb6ae62d94 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,45 +3,50 @@
pkgname=cxo
pkgname1=cxo
projectname=skycoin
+githuborg=skycoinproject
pkgdesc="CX Object Storage System for the Skycoin Blockchain"
pkgver=3.1.0
-pkggopath="github.com/${projectname}/${pkgname1}"
-pkgrel=2
+pkggopath="github.com/${githuborg}/${pkgname1}"
+pkgrel=3
arch=('any')
url="https://${pkggopath}"
license=()
makedepends=('go' 'dep')
-source=("https://${pkggopath}/archive/v${pkgver}.tar.gz")
-sha256sums=('e4fc5221d89b0f548a0093c944829c0b3e94f96efcc339effc5fea34f4accbd3')
+source=("https://${pkggopath}/archive/v${pkgver}.tar.gz"
+"https://raw.githubusercontent.com/0pcom/skycoin_archlinux_packages/master/key")
+sha256sums=('e4fc5221d89b0f548a0093c944829c0b3e94f96efcc339effc5fea34f4accbd3'
+'41c0a4a42ae64479b008392053f4a947618acd6bb9c3ed2672dafdb2453caa14')
prepare() {
-
-mkdir -p ${srcdir}/go/src/${pkggopath//${pkgname1}/} ${srcdir}/go/bin
-ln -rTsf ${srcdir}/${pkgname1}-${pkgver} ${srcdir}/go/src/${pkggopath}
-cd ${srcdir}/go/src/${pkggopath}/
-#git submodule --quiet update --init --recursive
-export GOPATH="${srcdir}"/go
-export GOBIN=${GOPATH}/bin
-export PATH=${GOPATH}/bin:${PATH}
-msg2 'installing go dependencies'
-#dep init
-dep ensure
-cd cmd
-go install -v ./...
+ gpg --import key
+ #verify PKGBUILD signature
+ gpg --verify ../PKGBUILD.sig ../PKGBUILD
+ mkdir -p ${srcdir}/go/src/${pkggopath//${pkgname1}/} ${srcdir}/go/bin
+ ln -rTsf ${srcdir}/${pkgname1}-${pkgver} ${srcdir}/go/src/${pkggopath}
+ cd ${srcdir}/go/src/${pkggopath}/
+ #git submodule --quiet update --init --recursive
+ export GOPATH="${srcdir}"/go
+ export GOBIN=${GOPATH}/bin
+ export PATH=${GOPATH}/bin:${PATH}
+ msg2 'installing go dependencies'
+ #dep init
+ dep ensure
+ cd cmd
+ go install -v ./...
}
package() {
-msg2 'installing CXO'
-options=(!strip staticlibs)
-mkdir -p ${pkgdir}/usr/bin
-mkdir -p ${pkgdir}/usr/lib/${projectname}/go/bin
-export GOPATH=${pkgdir}/usr/lib/${projectname}/go
-export GOBIN=${pkgdir}/usr/lib/${projectname}/go/bin
-cxobin="${srcdir}"/go/bin
-cxobins=$( ls $cxobin )
- for i in ${cxobins}; do
- install -Dm755 ${srcdir}/go/bin/${i} ${pkgdir}/usr/lib/${projectname}/go/bin/${i}
- ln -rTsf ${pkgdir}/usr/lib/${projectname}/go/bin/${i} ${pkgdir}/usr/bin/${i}
- chmod 755 ${pkgdir}/usr/bin/${i}
- done
+ msg2 'installing CXO'
+ options=(!strip staticlibs)
+ mkdir -p ${pkgdir}/usr/bin
+ mkdir -p ${pkgdir}/usr/lib/${projectname}/go/bin
+ export GOPATH=${pkgdir}/usr/lib/${projectname}/go
+ export GOBIN=${pkgdir}/usr/lib/${projectname}/go/bin
+ cxobin="${srcdir}"/go/bin
+ cxobins=$( ls $cxobin )
+ for i in ${cxobins}; do
+ install -Dm755 ${srcdir}/go/bin/${i} ${pkgdir}/usr/lib/${projectname}/go/bin/${i}
+ ln -rTsf ${pkgdir}/usr/lib/${projectname}/go/bin/${i} ${pkgdir}/usr/bin/${i}
+ chmod 755 ${pkgdir}/usr/bin/${i}
+ done
}