blob: 0903e5b2cc0fb041dd1f5acc7b7c72b3e0660199 (
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
42
43
44
45
46
47
48
49
|
# Maintainer: iamawacko <iamawacko@protonmail.com>
# Contributor: Trevor Bergeron <mal@sec.gd>
_pkgname=libcwtch-go
pkgname=$_pkgname-git
pkgver=1.10.5.r0.gae179fa
pkgrel=1
pkgdesc="C bindings for the Go Cwtch library"
provides=('libcwtch-go')
conflicts=('libcwtch-go')
depends=('tor')
makedepends=('go' 'git')
# Likely works on others, please report your success
arch=('x86_64')
url='https://cwtch.im'
license=('MIT')
source=("git+https://git.openprivacy.ca/cwtch.im/libcwtch-go.git")
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v\.\?//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/$_pkgname"
make clean
}
build() {
cd "$srcdir/$_pkgname"
export GOPATH="$srcdir/go"
export CGO_CFLAGS="${CFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-trimpath"
make linux
}
package() {
cd "$srcdir/$_pkgname"
install -Dm0644 libCwtch.so -t "$pkgdir/usr/lib/"
}
|