blob: d3ddaa2146a21640f9e4a3937fba12a736903035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
_pkgname=fluidkeys
pkgname=$_pkgname-git
pkgver=0.3.1.r0.g7f56a48
pkgrel=1
pkgdesc='Fluidkeys helps teams protect themselves with strong encryption.'
arch=('any')
url="https://www.fluidkeys.com"
license=('AGPL3')
makedepends=('go-pie' 'rsync' 'git' 'dep')
provides=("fluidkeys=$pkgver")
source=("git+https://github.com/fluidkeys/fluidkeys.git")
sha256sums=('SKIP')
_gopath="gopath/src/github.com/fluidkeys/fluidkeys"
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare(){
mkdir -p "$srcdir/gopath/src/github.com/fluidkeys"
ln -rTsf $_pkgname "$srcdir/$_gopath"
export GOPATH="$srcdir/gopath"
cd $srcdir/$_gopath
dep ensure
}
build() {
cd "$srcdir/$_gopath"
export GOPATH="$srcdir/gopath"
make
}
package() {
cd $srcdir/$_gopath
export GOPATH="$srcdir/gopath"
make install PREFIX="$pkgdir/usr"
}
|