blob: a9f052c85e2c18a025502cb02fc50164ac421015 (
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
|
# Maintainer: David Florness <david at florness dot com>
pkgname=tallyard
pkgver=0.5.0
pkgrel=1
arch=('x86_64')
pkgdesc="A peer-to-peer voting system that ensures voter privacy while preventing double-voting"
url="https://tallyard.xyz"
license=('MPL2')
depends=('libolm')
makedepends=('go>=1.18')
source=("$pkgname-v$pkgver.tar.gz::https://git.hnitbjorg.xyz/~edwargix/tallyard/archive/v$pkgver.tar.gz")
sha256sums=('fde35a89b5ff51e977916d71d8d2fa9216b4e074ae11742d227c216dd4aeb8d5')
build() {
cd "$srcdir/$pkgname-v$pkgver"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
export GOPATH="$srcdir"/.go
make
}
check() {
cd "$srcdir/$pkgname-v$pkgver"
go test ./...
}
package() {
cd "$srcdir/$pkgname-v$pkgver"
install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
}
|